Improve the construction method

This commit is contained in:
Rafi
2023-02-24 14:48:39 +08:00
parent 03d7dc2589
commit d96b5ad26a
6 changed files with 54 additions and 120 deletions

23
nginx.conf Normal file
View File

@@ -0,0 +1,23 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /app;
index index.html;
}
location /api/
{
proxy_pass ${SERVER_DOMAIN};
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /admin/ {
proxy_pass ${SERVER_DOMAIN};
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}