mirror of
				https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
				synced 2025-11-04 10:56:09 +00:00 
			
		
		
		
	postinst - fixed service file
This commit is contained in:
		@@ -9,18 +9,19 @@ After=network.target
 | 
				
			|||||||
[Service]
 | 
					[Service]
 | 
				
			||||||
User=www-data
 | 
					User=www-data
 | 
				
			||||||
Group=www-data
 | 
					Group=www-data
 | 
				
			||||||
 | 
					AmbientCapabilities=CAP_NET_BIND_SERVICE
 | 
				
			||||||
 | 
					EnvironmentFile=/etc/fastapi-dls/env
 | 
				
			||||||
WorkingDirectory=/usr/share/fastapi-dls
 | 
					WorkingDirectory=/usr/share/fastapi-dls
 | 
				
			||||||
EnvironmentFile=/etc/fastapi-dls.env
 | 
					ExecStart=uvicorn main:app \\
 | 
				
			||||||
ExecStart=uvicorn main:app \
 | 
					  --env-file /etc/fastapi-dls/env \\
 | 
				
			||||||
  --env-file /etc/fastapi-dls.env \
 | 
					  --host \$DLS_URL --port \$DLS_PORT \\
 | 
				
			||||||
  --host $DLS_URL --port $DLS_PORT \
 | 
					  --app-dir /usr/share/fastapi-dls/app \\
 | 
				
			||||||
  --app-dir /usr/share/fastapi-dls/app \
 | 
					  --ssl-keyfile /etc/fastapi-dls/webserver.key \\
 | 
				
			||||||
  --ssl-keyfile /etc/fastapi-dls/webserver.key \
 | 
					  --ssl-certfile /opt/fastapi-dls/webserver.crt \\
 | 
				
			||||||
  --ssl-certfile /opt/fastapi-dls/webserver.crt \
 | 
					 | 
				
			||||||
  --proxy-headers
 | 
					  --proxy-headers
 | 
				
			||||||
Restart=always
 | 
					Restart=always
 | 
				
			||||||
KillSignal=SIGQUIT
 | 
					KillSignal=SIGQUIT
 | 
				
			||||||
Type=notify
 | 
					Type=simple
 | 
				
			||||||
StandardError=syslog
 | 
					StandardError=syslog
 | 
				
			||||||
NotifyAccess=all
 | 
					NotifyAccess=all
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user