1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lemmy_ynh.git synced 2024-09-03 19:36:09 +02:00
This commit is contained in:
Éric Gaspar 2023-06-23 22:56:16 +02:00
parent 78e5ef7ae6
commit ed44d07c13
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ Group=__APP__
Environment="LEMMY_INTERNAL_HOST=127.0.0.1:__PORT__"
Environment="LEMMY_EXTERNAL_HOST=__DOMAIN__"
Environment="LEMMY_HTTPS=true"
Environment="LEMMY_UI_HOST=127.0.0.1:__PORT_UI__"
Environment="LEMMY_UI_HOST=0.0.0.0:__PORT_UI__"
WorkingDirectory=__INSTALL_DIR__/lemmy-ui/
ExecStart=__YNH_NODE__ dist/js/server.js
StandardOutput=append:/var/log/__APP__/__APP__-ui.log

View file

@ -121,8 +121,8 @@ yunohost service add $app-ui --log="/var/log/$app/$app-ui.log"
ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" #--line_match="Starting http server at"
ynh_systemd_action --service_name=$app-ui --action="start" --log_path="/var/log/$app/$app-ui.log" #--line_match="http://0.0.0.0"
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Starting http server at"
ynh_systemd_action --service_name=$app-ui --action="start" --log_path="/var/log/$app/$app-ui.log" --line_match="http://0.0.0.0"
#=================================================
# END OF SCRIPT