fix gitignore and default BIND address in service file

This commit is contained in:
fram3d 2024-01-17 15:11:01 +01:00
parent 5be06f2f7d
commit 8641c9b372
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
2 changed files with 14 additions and 2 deletions

4
.gitignore vendored
View File

@ -24,11 +24,11 @@ dist/
downloads/
eggs/
.eggs/
lib/
#lib/
lib64/
parts/
sdist/
var/
#var/
wheels/
pip-wheel-metadata/
share/python-wheels/

View File

@ -0,0 +1,12 @@
[Unit]
Description=Gunicorn flaskapp service
Documentation=man:gunicorn(1)
After=network.target nss-lookup.target
[Service]
WorkingDirectory=/var/flaskapp/
ExecStart=/usr/bin/gunicorn --workers 3 --bind 0.0.0.0:80 run:app
[Install]
WantedBy=multi-user.target