feat(nginx): add config for nginx

This commit is contained in:
DCsunset 2020-07-17 00:34:47 -07:00
parent 706f633f78
commit 83d6f1a13c

17
nginx/nginx.conf Normal file
View file

@ -0,0 +1,17 @@
server {
listen 80;
listen [::]:80;
# Frontend
location / {
root /static/;
}
# Backend
location /api/ {
# Slash at the end is necessary to rewrite the path
proxy_pass http://localhost:3000/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
}