mirror of
				https://framagit.org/YunoHost-Apps/gitea_ynh.git
				synced 2025-10-30 21:35:36 +01:00 
			
		
		
		
	Migrate to manifestv2 and other changes:
* Move app install dir from /opt to /var/www * Revamp the way binaries are downloaded thanks to manifestv2 (no need to check for arch, etc) * Remove custom helpers (exec_as, ynh_handle_app_migration) * Rename LFS_KEY as LFS_JWT_SECRET and KEY as SECRET_KEY as named in app.ini * Add JWT_SECRET for oauth and INTERNAL_TOKEN in app.ini * update upstream sample app.ini URL * Disable actions for now. * Automatically add ssh permissions to the system user * Remove support for upgrade before 1.6.4. Edit test_upgrade_from accordingly.
This commit is contained in:
		 Félix Piédallu
					Félix Piédallu
				
			
				
					committed by
					
						 Félix Piédallu
						Félix Piédallu
					
				
			
			
				
	
			
			
			 Félix Piédallu
						Félix Piédallu
					
				
			
						parent
						
							b51febc0f9
						
					
				
				
					commit
					60cb5e5ae4
				
			| @@ -16,12 +16,12 @@ Type=simple | ||||
| User=__APP__ | ||||
| Group=__APP__ | ||||
| WorkingDirectory=/home/yunohost.app/__APP__ | ||||
| ExecStart=/opt/__APP__/gitea web | ||||
| ExecStart=__INSTALL_DIR__/gitea web | ||||
| Restart=always | ||||
| Environment=USER=__APP__ HOME=/home/yunohost.app/__APP__ | ||||
|  | ||||
| # Sandboxing options to harden security | ||||
| # Depending on specificities of your service/app, you may need to tweak these  | ||||
| # Depending on specificities of your service/app, you may need to tweak these | ||||
| # .. but this should be a good baseline | ||||
| # Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html | ||||
| NoNewPrivileges=yes | ||||
| @@ -48,7 +48,7 @@ CapabilityBoundingSet=~CAP_BLOCK_SUSPEND CAP_WAKE_ALARM | ||||
| CapabilityBoundingSet=~CAP_SYS_TTY_CONFIG | ||||
| CapabilityBoundingSet=~CAP_MAC_ADMIN CAP_MAC_OVERRIDE | ||||
| CapabilityBoundingSet=~CAP_NET_ADMIN CAP_NET_BROADCAST CAP_NET_RAW | ||||
| CapabilityBoundingSet=~CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_SYSLOG  | ||||
| CapabilityBoundingSet=~CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_SYSLOG | ||||
|  | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
|   | ||||
		Reference in New Issue
	
	Block a user