Merge pull request #290 from k4k/add_nginx_config_example

Add example nginx config
This commit is contained in:
J62 2018-04-07 16:06:53 -07:00 committed by GitHub
commit df2dcd3c56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

19
examples/example_nginx Normal file
View File

@ -0,0 +1,19 @@
server {
listen 80;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ =404;
}
location ~ .$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8080;
}
}