mirror of
				https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
				synced 2025-11-04 02:16:07 +00:00 
			
		
		
		
	postinst - fixed paths and permissions
This commit is contained in:
		@@ -20,9 +20,9 @@ EnvironmentFile=$CONFIG_DIR/env
 | 
			
		||||
ExecStart=uvicorn main:app \\
 | 
			
		||||
  --env-file /etc/fastapi-dls/env \\
 | 
			
		||||
  --host \$DLS_URL --port \$DLS_PORT \\
 | 
			
		||||
  --app-dir /usr/share/fastapi-dls/app \\
 | 
			
		||||
  --app-dir /usr/share/fastapi-dls \\
 | 
			
		||||
  --ssl-keyfile /etc/fastapi-dls/webserver.key \\
 | 
			
		||||
  --ssl-certfile /opt/fastapi-dls/webserver.crt \\
 | 
			
		||||
  --ssl-certfile /etc/fastapi-dls/webserver.crt \\
 | 
			
		||||
  --proxy-headers
 | 
			
		||||
Restart=always
 | 
			
		||||
KillSignal=SIGQUIT
 | 
			
		||||
@@ -74,6 +74,8 @@ if [[ -f $CONFIG_DIR/webserver.key ]]; then
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
chown -R www-data:www-data $CONFIG_DIR/*
 | 
			
		||||
 | 
			
		||||
cat <<EOF
 | 
			
		||||
 | 
			
		||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user