36 lines
1.1 KiB
Nginx Configuration File
36 lines
1.1 KiB
Nginx Configuration File
upstream auth_web {
|
|
server auth_web:3000;
|
|
}
|
|
|
|
upstream auth_api {
|
|
server auth_api:3001;
|
|
}
|
|
|
|
|
|
server {
|
|
listen 80;
|
|
include /etc/nginx/mime.types;
|
|
|
|
gzip on;
|
|
gzip_min_length 1000;
|
|
gzip_proxied any;
|
|
gzip_comp_level 1;
|
|
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml;
|
|
gzip_vary on;
|
|
gzip_disable "msie6";
|
|
|
|
|
|
location / {
|
|
proxy_pass http://auth_api;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
proxy_set_header X-Original-URI $request_uri;
|
|
proxy_set_header X-Original-Remote-Addr $remote_addr;
|
|
proxy_set_header X-Original-Host $host;
|
|
}
|
|
}
|