Added nginx config
This commit is contained in:
16
nginx-config-files/houtmarkt-app.conf
Normal file
16
nginx-config-files/houtmarkt-app.conf
Normal 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/;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user