52 lines
1.5 KiB
Nginx Configuration File
52 lines
1.5 KiB
Nginx Configuration File
|
|
upstream auth_logs_api {
|
|
server auth_logs_api:3000;
|
|
}
|
|
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
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";
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
location /auth-srv/ {
|
|
internal;
|
|
|
|
|
|
proxy_pass_request_body off;
|
|
proxy_set_header Content-Length "";
|
|
proxy_set_header X-Original-URI $request_uri;
|
|
proxy_set_header X-Original-Remote-Addr $remote_addr;
|
|
proxy_set_header X-Original-Host $host;
|
|
|
|
proxy_pass http://auth_logs_api/;
|
|
}
|
|
|
|
location = /auth {
|
|
internal;
|
|
|
|
proxy_pass /auth-srv/auth/check-token;
|
|
}
|
|
|
|
|
|
location / {
|
|
auth_request /auth;
|
|
auth_request_set $accnumber $upstream_http_acc_number;
|
|
|
|
proxy_pass $URL_LOG;
|
|
}
|
|
|
|
location = /health {
|
|
access_log off;
|
|
add_header 'Content-Type' 'application/json';
|
|
return 200 'UP';
|
|
}
|
|
} |