update nginx compose
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
POSTGRES_USER=f0ckm
|
||||
POSTGRES_DB=f0ckm
|
||||
POSTGRES_PASSWORD=f0ckm
|
||||
|
||||
# --- Nginx & Let's Encrypt Configuration (Optional) ---
|
||||
# VIRTUAL_HOST=yourdomain.com
|
||||
# LETSENCRYPT_HOST=yourdomain.com
|
||||
# LETSENCRYPT_EMAIL=your-email@example.com
|
||||
#VIRTUAL_HOST=example.net
|
||||
#LETSENCRYPT_HOST=example.net
|
||||
#LETSENCRYPT_EMAIL=foobar@example.net
|
||||
|
||||
11
config/nginx/f0ck.conf
Normal file
11
config/nginx/f0ck.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
client_max_body_size 100M;
|
||||
client_body_timeout 120s;
|
||||
client_header_timeout 120s;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_connect_timeout 120s;
|
||||
proxy_send_timeout 120s;
|
||||
proxy_read_timeout 120s;
|
||||
@@ -1,4 +1,11 @@
|
||||
services:
|
||||
f0ckm:
|
||||
environment:
|
||||
- VIRTUAL_HOST=${VIRTUAL_HOST:-localhost}
|
||||
- VIRTUAL_PORT=1337
|
||||
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST:-}
|
||||
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL:-}
|
||||
|
||||
nginx-proxy:
|
||||
image: nginxproxy/nginx-proxy:latest
|
||||
container_name: f0ckm-nginx-proxy
|
||||
@@ -10,6 +17,7 @@ services:
|
||||
- certs:/etc/nginx/certs:rw
|
||||
- vhost:/etc/nginx/vhost.d:rw
|
||||
- html:/usr/share/nginx/html:rw
|
||||
- ./config/nginx/f0ck.conf:/etc/nginx/conf.d/f0ckm.conf:ro
|
||||
networks:
|
||||
- f0ckm-net
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -35,10 +35,6 @@ services:
|
||||
|
||||
environment:
|
||||
- GIT_HASH=${f0ckm_TAG:-unknown}
|
||||
- VIRTUAL_HOST=${VIRTUAL_HOST:-localhost}
|
||||
- VIRTUAL_PORT=1337
|
||||
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST:-}
|
||||
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL:-}
|
||||
ports:
|
||||
- "1337:1337"
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user