drive.vostan.org works.
This commit is contained in:
@@ -5,20 +5,26 @@ services:
|
|||||||
image: nginx:stable-alpine
|
image: nginx:stable-alpine
|
||||||
container_name: www
|
container_name: www
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
# ports:
|
||||||
- 80:80
|
# - 80:80
|
||||||
- 443:443
|
# - 443:443
|
||||||
volumes:
|
volumes:
|
||||||
- ./certbot/www/:/var/www/certbot/:ro
|
- ./certbot/www/:/var/www/certbot/:ro
|
||||||
- ./certbot/conf/live/:/etc/nginx/ssl/live/:ro
|
- ./certbot/conf/live/:/etc/nginx/ssl/live/:ro
|
||||||
- ./certbot/conf/archive/:/etc/nginx/ssl/archive/:ro
|
- ./certbot/conf/archive/:/etc/nginx/ssl/archive/:ro
|
||||||
- ./sites/default.conf:/etc/nginx/conf.d/default.conf:ro
|
- ./sites/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
- ./sites/default_ssl.conf:/etc/nginx/conf.d/default_ssl.conf:ro
|
- ./sites/default_ssl.conf:/etc/nginx/conf.d/default_ssl.conf:ro
|
||||||
- ./sites/www.vostan.org:/etc/nginx/conf.d/www.vostan.org:ro
|
- ./sites/www.vostan.org:/etc/nginx/conf.d/www.vostan.org.conf:ro
|
||||||
- ./sites/drive.vostan.org:/etc/nginx/conf.d/drive.vostan.org:ro
|
- ./sites/drive.vostan.org:/etc/nginx/conf.d/drive.vostan.org.conf:ro
|
||||||
|
network_mode: host
|
||||||
|
# command: [nginx-debug, '-g', 'daemon off;']
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot:latest
|
image: certbot/certbot:latest
|
||||||
container_name: certbot
|
container_name: certbot
|
||||||
volumes:
|
volumes:
|
||||||
- ./certbot/www/:/var/www/certbot/:rw
|
- ./certbot/www/:/var/www/certbot/:rw
|
||||||
- ./certbot/conf/:/etc/letsencrypt/:rw
|
- ./certbot/conf/:/etc/letsencrypt/:rw
|
||||||
|
|
||||||
|
# networks:
|
||||||
|
# lan:
|
||||||
|
# driver: host
|
||||||
|
|||||||
@@ -27,16 +27,16 @@ server {
|
|||||||
#
|
#
|
||||||
set $upstream 192.168.11.4;
|
set $upstream 192.168.11.4;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass_header Authorization;
|
proxy_pass_header Authorization;
|
||||||
proxy_pass http://$upstream:8090;
|
proxy_pass http://$upstream:8090;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Connection "";
|
proxy_set_header Connection "";
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
proxy_read_timeout 36000s;
|
proxy_read_timeout 36000s;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user