mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-31 06:24:18 -04:00
fix(oxicloud): set OXICLOUD_STATIC_PATH to serve frontend
The server defaults to ./static relative to the working directory. Without WorkingDirectory in the service, it looks at /static which doesn't exist, causing 404 on the web UI. Set the absolute path /opt/oxicloud/static in the .env file.
This commit is contained in:
@@ -36,6 +36,7 @@ msg_info "Configuring OxiCloud"
|
||||
mkdir -p {/mnt/oxicloud,/etc/oxicloud}
|
||||
sed -e 's|_STORAGE_PATH=.*|_STORAGE_PATH=/mnt/oxicloud|' \
|
||||
-e 's|_SERVER_HOST=.*|_SERVER_HOST=0.0.0.0|' \
|
||||
-e 's|OXICLOUD_STATIC_PATH=.*|OXICLOUD_STATIC_PATH=/opt/oxicloud/static|' \
|
||||
-e "s|^#OXICLOUD_BASE_URL=.*|OXICLOUD_BASE_URL=http://${LOCAL_IP}:8086|" \
|
||||
-e "s|_STRING=.*|_STRING=${DATABASE_URL}|" \
|
||||
-e "s|DATABASE_URL=.*|DATABASE_URL=${DATABASE_URL}|" \
|
||||
|
||||
Reference in New Issue
Block a user