This commit is contained in:
hamid zarghami
2026-07-04 12:50:02 +03:30
parent 23f47705bb
commit 6a6aa76b1e
17 changed files with 560 additions and 10 deletions
+2 -2
View File
@@ -66,13 +66,13 @@ server {
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
location ~ ^/(foods|orders|customers|schedule|payment_methods|discounts|announcements|reports|comments|roles|admins|shipment_methods|coupons|reviews|pagers|notifications)/ {
location ~ ^/(foods|orders|customers|schedule|payment_methods|discounts|announcements|reports|comments|roles|admins|shipment_methods|coupons|reviews|pagers|notifications|wallet)/ {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
# Restaurant menu preview (same-origin iframe; strips X-Frame-Options from upstream)
location ~ ^/(?!auth|dashboard|setting|statistics|foods|orders|customers|schedule|payment_methods|discounts|announcements|reports|comments|roles|admins|shipment_methods|coupons|reviews|pagers|notifications|assets|icons|_next)([a-zA-Z0-9][a-zA-Z0-9_-]*)(/.*)?$ {
location ~ ^/(?!auth|dashboard|setting|statistics|foods|orders|customers|schedule|payment_methods|discounts|announcements|reports|comments|roles|admins|shipment_methods|coupons|reviews|pagers|notifications|wallet|assets|icons|_next)([a-zA-Z0-9][a-zA-Z0-9_-]*)(/.*)?$ {
proxy_pass https://dmenu.danakcorp.com/$1$2$is_args$args;
proxy_ssl_server_name on;
proxy_set_header Host dmenu.danakcorp.com;