fix: sync nginx ssot with live config
Some checks failed
Deploy Nginx Config to Ubuntu Server / deploy (push) Has been cancelled

This commit is contained in:
happybell80 2026-03-10 20:05:01 +09:00
parent 8baf835378
commit 3cd05360e1

View File

@ -38,7 +38,7 @@ server {
# #
# include snippets/snakeoil.conf; # include snippets/snakeoil.conf;
root /home/admin/frontend-customer/dist; root /var/www/html/robeing;
# Add index.php to the list if you are using PHP # Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html; index index.html index.htm index.nginx-debian.html;
@ -66,7 +66,7 @@ server {
location / { location / {
# First attempt to serve request as file, then # First attempt to serve request as file, then
# as directory, then fall back to displaying a 404. # as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html; try_files $uri /index.html;
} }
# GooseFarm API - must come before /goosefarm for priority # GooseFarm API - must come before /goosefarm for priority
@ -231,7 +231,7 @@ server {
# #
# include snippets/snakeoil.conf; # include snippets/snakeoil.conf;
root /home/admin/frontend-customer/dist; root /var/www/html/robeing;
# Add index.php to the list if you are using PHP # Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html; index index.html index.htm index.nginx-debian.html;
@ -262,23 +262,22 @@ server {
index index.html; index index.html;
} }
# Zari frontend (Next.js on localhost:3010) # Legacy Starsandi paths on ro-being.com -> starsandi.com
location /zari { location ~ ^/(startsandi|zari)(/.*)?$ {
proxy_pass http://127.0.0.1:3010; return 301 https://starsandi.com$2$is_args$args;
proxy_http_version 1.1; }
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; location = /starsandi {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; return 301 https://starsandi.com/;
proxy_set_header X-Forwarded-Proto $scheme; }
proxy_read_timeout 120s;
proxy_buffering off; location ~ ^/starsandi/(.*)$ {
proxy_request_buffering off; return 301 https://starsandi.com/$1$is_args$args;
proxy_max_temp_file_size 0;
} }
# Main application static files # Main application static files
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri /index.html;
} }
# GooseFarm API - must come before /goosefarm for priority # GooseFarm API - must come before /goosefarm for priority