fix: add /sidata alias location in nginx configmap
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user