forked from oscar.krause/fastapi-dls
postinst - fixed paths and permissions
This commit is contained in:
parent
63670f52e8
commit
a08261f7cd
@ -20,9 +20,9 @@ EnvironmentFile=$CONFIG_DIR/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 \\
|
||||||
--ssl-keyfile /etc/fastapi-dls/webserver.key \\
|
--ssl-keyfile /etc/fastapi-dls/webserver.key \\
|
||||||
--ssl-certfile /opt/fastapi-dls/webserver.crt \\
|
--ssl-certfile /etc/fastapi-dls/webserver.crt \\
|
||||||
--proxy-headers
|
--proxy-headers
|
||||||
Restart=always
|
Restart=always
|
||||||
KillSignal=SIGQUIT
|
KillSignal=SIGQUIT
|
||||||
@ -74,6 +74,8 @@ if [[ -f $CONFIG_DIR/webserver.key ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chown -R www-data:www-data $CONFIG_DIR/*
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||||
|
Loading…
Reference in New Issue
Block a user