fix build
This commit is contained in:
parent
520e535e47
commit
ceb9d429ce
@ -1,4 +1,4 @@
|
||||
version: '3'
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
internal_server:
|
||||
@ -10,15 +10,19 @@ services:
|
||||
- URL_DOWNLOAD=${URL_DOWNLOAD}
|
||||
networks:
|
||||
- internal_network
|
||||
- web
|
||||
labels:
|
||||
- 'traefik.enable=true'
|
||||
- 'traefik.backend=proxy'
|
||||
- 'traefik.docker.network=web'
|
||||
- 'traefik.http.routers.proxy.rule=Host(`${WEB_HOST}`)'
|
||||
- 'traefik.http.routers.proxy.entrypoints=web-secure'
|
||||
- 'traefik.http.routers.proxy.tls.certresolver=le'
|
||||
- 'traefik.port=80'
|
||||
|
||||
- "traefik.enable=true"
|
||||
- "traefik.backend=proxy"
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.http.routers.proxy.rule=Host(`${WEB_HOST}`)"
|
||||
- "traefik.http.routers.proxy.entrypoints=web-secure"
|
||||
- "traefik.http.routers.proxy.tls.certresolver=le"
|
||||
- "traefik.port=80"
|
||||
|
||||
networks:
|
||||
internal_network:
|
||||
external:
|
||||
name: internal_network
|
||||
web:
|
||||
external: true
|
||||
|
||||
14
nginx.conf
14
nginx.conf
@ -1,17 +1,9 @@
|
||||
|
||||
worker_processes 4;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
upstream auth_server {
|
||||
server auth_server:80;
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
server {
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
gzip on;
|
||||
@ -29,9 +21,7 @@ http {
|
||||
|
||||
location = /auth {
|
||||
internal;
|
||||
|
||||
proxy_pass http://auth_server;
|
||||
|
||||
proxy_pass_request_body off;
|
||||
proxy_set_header Content-Length "";
|
||||
proxy_set_header X-Original-URI $request_uri;
|
||||
@ -43,10 +33,8 @@ http {
|
||||
proxy_pass http://auth_server;
|
||||
}
|
||||
|
||||
|
||||
location /download {
|
||||
auth_request /auth;
|
||||
proxy_pass $URL_DOWNLOAD;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user