diff --git a/server/config/send/.env b/server/config/send/.env deleted file mode 100644 index e391f8a..0000000 --- a/server/config/send/.env +++ /dev/null @@ -1,2 +0,0 @@ -DOCKER_DATA=/home/joey/data/send -SEND_BASE_URL=https://send.jafner.net \ No newline at end of file diff --git a/server/config/send/docker-compose.yml b/server/config/send/docker-compose.yml index a911613..bd3b560 100644 --- a/server/config/send/docker-compose.yml +++ b/server/config/send/docker-compose.yml @@ -17,16 +17,8 @@ services: - web volumes: - ${DOCKER_DATA}/uploads:/uploads - environment: - - VIRTUAL_HOST=0.0.0.0 - - VIRTUAL_PORT=1234 - - DHPARAM_GENERATION=false - - NODE_ENV=production - - BASE_URL=${SEND_BASE_URL} - - PORT=1234 - - REDIS_HOST=redis - - FILE_DIR=/uploads - - MAX_FILE_SIZE=42949672960 + env_file: + - send.env labels: - traefik.http.routers.send.rule=Host(`send.jafner.net`) - traefik.http.routers.send.tls.certresolver=lets-encrypt diff --git a/server/config/send/project.env b/server/config/send/project.env deleted file mode 100644 index e69de29..0000000 diff --git a/server/config/send/send.env b/server/config/send/send.env new file mode 100644 index 0000000..c0257e0 --- /dev/null +++ b/server/config/send/send.env @@ -0,0 +1,13 @@ +# Volumes +DOCKER_DATA=/home/joey/data/send + +# Env +VIRTUAL_HOST=0.0.0.0 +VIRTUAL_PORT=1234 +DHPARAM_GENERATION=false +NODE_ENV=production +BASE_URL=https://send.jafner.net +PORT=1234 +REDIS_HOST=redis +FILE_DIR=/uploads +MAX_FILE_SIZE=42949672960 \ No newline at end of file