filesafe/nginx.sample.conf
Bobby Wibowo 34a08f036f
Updates
* Updated .editorconfig file to match indent styling for GitHub MD files and Nginx Conf files.

* Removed final newline from LICENSE.

* Restored indents to tabs in Nginx Conf files.
2018-03-18 20:41:09 +07:00

33 lines
910 B
Plaintext

upstream backend {
server 127.0.0.1:9999; # Change to the port you specified on lolisafe
}
server {
listen 80;
listen [::]:80;
server_name lolisafe.moe;
client_max_body_size 100M; # Change this to the max file size you want to allow
location / {
add_header Access-Control-Allow-Origin *;
root /path/to/your/uploads/folder;
try_files $uri @proxy;
}
location @proxy {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://backend;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_set_header X-Forwarded-Proto $scheme;
}
}