This repository has been archived on 2023-05-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neo/custom/will-discourse-nginx/nginx.conf
2023-02-07 00:32:49 +01:00

31 lines
542 B
Nginx Configuration File

user www-data;
events {
worker_connections 768;
}
http {
upstream app {
server app:3000;
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
gzip on;
gzip_disable "msie6";
server {
listen 80;
try_files $uri/index.html $uri @app;
location / {
proxy_pass http://app;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
client_max_body_size 10M;
keepalive_timeout 10;
}
}