Added nginx config

This commit is contained in:
2020-05-28 03:02:43 +00:00
parent a3b04a0f0b
commit 05d9793258
2 changed files with 26 additions and 8 deletions

View File

@ -0,0 +1,16 @@
server {
listen 80;
server_name _;
root /houtmarkt-jeremy/nginx-data/
location /static/ {
alias /houtmarkt-jeremy/nginx-data/staticfiles/;
# Never forget the fact that this little statement being root instead of alias caused us to lose more than a day troubleshooting
}
location {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:8080/;
}
}