mirror of
https://github.com/DCsunset/taskwarrior-webui.git
synced 2025-08-18 21:43:06 +02:00
feat(nginx): add config for nginx
This commit is contained in:
parent
706f633f78
commit
83d6f1a13c
1 changed files with 17 additions and 0 deletions
17
nginx/nginx.conf
Normal file
17
nginx/nginx.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue