mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Merge d1eb811bd8
into 376f687c38
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
# Integrate environment variables
|
||||
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
|
||||
/etc/nginx/nginx.conf
|
||||
sed -i "s|__BACKEND_PORT__|${BACKEND_PORT}|" \
|
||||
/etc/nginx/nginx.conf
|
||||
sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \
|
||||
/var/www/index.htm \
|
||||
/var/www/manifest.json
|
||||
|
@ -20,7 +20,7 @@ http {
|
||||
keepalive_timeout 65;
|
||||
|
||||
upstream backend {
|
||||
server __BACKEND__:6666;
|
||||
server __BACKEND__:__BACKEND_PORT__;
|
||||
}
|
||||
|
||||
server {
|
||||
|
@ -30,6 +30,7 @@ services:
|
||||
- server
|
||||
environment:
|
||||
BACKEND_HOST: server
|
||||
BACKEND_PORT: 6666
|
||||
BASE_URL:
|
||||
volumes:
|
||||
- "${MOUNT_DATA}:/data:ro"
|
||||
|
Reference in New Issue
Block a user