1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mobilizon_ynh.git synced 2024-09-03 19:46:19 +02:00

Fix /live

This commit is contained in:
yalh76 2021-07-31 01:06:26 +02:00
parent c36a505c34
commit 56ae0c8e6d
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ location __PATH__/ {
proxy_pass http://localhost:__PORT__; proxy_pass http://localhost:__PORT__;
location ~* \.(css|js)$ { location ~* \.(css|js)$ {
root __FINALPATH__/__APP__/priv/static; root __FINALPATH__/live/priv/static;
etag off; etag off;
access_log off; access_log off;
more_set_headers "Cache-Control: public, max-age=31536000, immutable"; more_set_headers "Cache-Control: public, max-age=31536000, immutable";
@ -38,6 +38,6 @@ location __PATH__/ {
} }
location @error { location @error {
root __FINALPATH__/__APP__/priv/errors; root __FINALPATH__/lilve/priv/errors;
try_files /error.html 502; try_files /error.html 502;
} }

View file

@ -4,7 +4,7 @@ After=network.target postgresql.service
[Service] [Service]
User=__APP__ User=__APP__
WorkingDirectory=__FINALPATH__/__APP__/ WorkingDirectory=__FINALPATH__/live/
ExecStart=/usr/bin/env mix phx.server ExecStart=/usr/bin/env mix phx.server
ExecReload=/bin/kill $MAINPID ExecReload=/bin/kill $MAINPID
KillMode=process KillMode=process