29 lines
453 B
Nginx Configuration File
29 lines
453 B
Nginx Configuration File
events {}
|
|
|
|
http {
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
types_hash_max_size 2048;
|
|
|
|
location / {
|
|
# First attempt to serve request as file, then
|
|
# as directory, then fall back to displaying a 404.
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location /api {
|
|
#proxy_set_header X-Forwarded-Host $host
|
|
proxy_pass http://twake_node_1:3000;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
} |