Created
February 25, 2020 02:52
-
-
Save b4oshany/6bcc1c42a294148adcf2fba6ccd22d09 to your computer and use it in GitHub Desktop.
Nginx ICD11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/errora.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 4096; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log /var/log/nginx/access.log main; | |
#sendfile on; | |
#tcp_nopush on; | |
keepalive_timeout 65; | |
upstream api { | |
server 127.0.0.1:5382; | |
# server [::]:5382; | |
} | |
upstream ct { | |
server 127.0.0.1:5380; | |
# server [::]:5380; | |
} | |
#gzip on; | |
#include /etc/nginx/conf.d/*.conf; | |
server { | |
listen [::]:80 ipv6only=on; | |
server_name _; | |
} | |
server { | |
listen 80 default_server; | |
#listen [::]:80 ipv6only=on; | |
#listen [::]:80 ipv6only=on; | |
server_name _; | |
location /icd/ { | |
proxy_pass http://api; | |
proxy_buffering off; | |
proxy_request_buffering off; | |
proxy_set_header X-Forwarded-For "$http_x_forwarded_for, $realip_remote_addr"; | |
} | |
location /configure/ { | |
proxy_pass http://api; | |
proxy_buffering off; | |
proxy_request_buffering off; | |
} | |
location /swagger/ { | |
proxy_pass http://api; | |
proxy_buffering off; | |
proxy_request_buffering off; | |
} | |
location /analytics/ { | |
proxy_pass http://api; | |
proxy_buffering off; | |
proxy_request_buffering off; | |
} | |
location /ct11/ { | |
proxy_pass http://ct; | |
proxy_buffering off; | |
proxy_request_buffering off; | |
proxy_set_header X-Forwarded-For "$http_x_forwarded_for, $realip_remote_addr"; | |
} | |
location / { | |
proxy_pass http://api; | |
proxy_buffering off; | |
proxy_request_buffering off; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment