1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00
This commit is contained in:
Chris Vogel 2024-04-12 08:20:16 +02:00
parent 87b416a658
commit b02d3d4045
2 changed files with 3 additions and 1 deletions

View file

@ -9,7 +9,7 @@ Group=__APP__
WorkingDirectory=__INSTALL_DIR__/__APP__
Environment="UVICORN_PORT=__PORT__"
Environment="VENV_DIR=__INSTALL_DIR__/venv/"
Environment="UVICORN_HOST=__127.0.0.1__"
Environment="UVICORN_HOST=127.0.0.1"
ExecStart=__INSTALL_DIR__/venv/bin/uvicorn --reload flohmarkt:app
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit

View file

@ -98,6 +98,8 @@ ynh_add_systemd_config
# integrate into yunohost
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="A self-hosted, single-user, ActivityPub powered microblog." --log="/var/log/$app/$app.log"
# start service
ynh_systemd_action --service_name=$app --action="start"
# SETUP FAIL2BAN
# no need for couchdb, because it will not listen externally