42 lines
904 B
Nginx Configuration File
42 lines
904 B
Nginx Configuration File
daemon off;
|
|
worker_processes auto;
|
|
pcre_jit on;
|
|
include /etc/nginx/modules/*.conf;
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
server_tokens off;
|
|
client_max_body_size 1m;
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
gzip_vary on;
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3000;
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location /docs/ {
|
|
alias /opt/app/docs/;
|
|
}
|
|
}
|
|
}
|