fix: add /sidata alias location in nginx configmap

This commit is contained in:
2026-09-03 14:09:20 +07:00
parent a30cbcadd9
commit ae3facfee0
2 changed files with 20 additions and 3 deletions
+15
View File
@@ -14,6 +14,21 @@ data:
fastcgi_param HTTPS on;
fastcgi_param HTTP_X_FORWARDED_PROTO https;
# Tangani request yang diawali dengan /sidata
location /sidata {
alias /var/www/html/public;
try_files $uri $uri/ /index.php?$query_string;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/public/index.php;
include fastcgi_params;
fastcgi_param HTTPS on;
fastcgi_param HTTP_X_FORWARDED_PROTO https;
}
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
+5 -3
View File
@@ -14,10 +14,12 @@ service:
ingress:
enabled: true
className: nginx
annotations: {} # Hapus use-regex dan rewrite-target
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
host: dashboard-bpkd.drc-bpkd.data-center.id
path: /sidata
pathType: Prefix
path: /sidata(/|$)(.*)
pathType: ImplementationSpecific
env:
APP_NAME: "SIDATA"