|
|
@@ -28,41 +28,17 @@ server {
|
|
|
add_header Content-Type text/plain;
|
|
|
}
|
|
|
|
|
|
-# # BUILT ASSETS (E.G. JS BUNDLES)
|
|
|
-# # Browser cache - max cache headers from Next.js as build id in url
|
|
|
-# # Server cache - valid forever (cleared after cache "inactive" period)
|
|
|
-# location /_next/static {
|
|
|
-# proxy_cache STATIC;
|
|
|
-# proxy_pass http://nextjs;
|
|
|
-# }
|
|
|
-#
|
|
|
-# # STATIC ASSETS (E.G. IMAGES)
|
|
|
-# # Browser cache - "no-cache" headers from Next.js as no build id in url
|
|
|
-# # Server cache - refresh regularly in case of changes
|
|
|
-# location /static {
|
|
|
-# proxy_cache STATIC;
|
|
|
-# proxy_ignore_headers Cache-Control;
|
|
|
-# proxy_cache_valid 60m;
|
|
|
-# proxy_pass http://nextjs;
|
|
|
-# }
|
|
|
-
|
|
|
# DYNAMIC ASSETS - NO CACHE
|
|
|
location / {
|
|
|
proxy_pass http://nextjs;
|
|
|
}
|
|
|
|
|
|
- location ~ ^/alaa/api/v2/(.*)$ {
|
|
|
+ location ~ ^/api/(.*)$ {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass_request_headers on;
|
|
|
- proxy_pass http://192.168.8.12:700/api/v2/$1?$query_string;
|
|
|
+ proxy_pass http://palizvani.hghweb.ir/api/$1?$query_string;
|
|
|
}
|
|
|
|
|
|
- location ~ ^/alaa/api/v1/(.*)$ {
|
|
|
- proxy_redirect off;
|
|
|
- proxy_pass_request_headers on;
|
|
|
- proxy_pass http://192.168.8.12:700/api/v1/$1?$query_string;
|
|
|
- }
|
|
|
-#
|
|
|
# location /socket.io {
|
|
|
# proxy_redirect off;
|
|
|
# proxy_pass_request_headers on;
|
|
|
@@ -84,19 +60,18 @@ server {
|
|
|
# add_header Cache-Control "public, no-transform";
|
|
|
# try_files $uri $uri/ /firebase-messaging-sw.js;
|
|
|
# }
|
|
|
-#
|
|
|
+
|
|
|
# location ~* \.(js|css)$ {
|
|
|
# etag on;
|
|
|
# expires 600s;
|
|
|
# add_header Cache-Control "public, no-transform";
|
|
|
-# try_files $uri $uri/ /index.html?$query_string;
|
|
|
+# try_files $uri $uri/ /?$query_string;
|
|
|
# }
|
|
|
#
|
|
|
# location ~* \.(ico|woff|woff2|ttf|svg|png|map|eot)$ {
|
|
|
# etag on;
|
|
|
# expires 10h;
|
|
|
# add_header Cache-Control "public, no-transform";
|
|
|
-# try_files $uri $uri/ /index.html?$query_string;
|
|
|
+# try_files $uri $uri/ /?$query_string;
|
|
|
# }
|
|
|
-
|
|
|
}
|