fix: add /sidata alias location in nginx configmap
This commit is contained in:
@@ -14,6 +14,21 @@ data:
|
|||||||
fastcgi_param HTTPS on;
|
fastcgi_param HTTPS on;
|
||||||
fastcgi_param HTTP_X_FORWARDED_PROTO https;
|
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 / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,10 +14,12 @@ service:
|
|||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: nginx
|
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
|
host: dashboard-bpkd.drc-bpkd.data-center.id
|
||||||
path: /sidata
|
path: /sidata(/|$)(.*)
|
||||||
pathType: Prefix
|
pathType: ImplementationSpecific
|
||||||
|
|
||||||
env:
|
env:
|
||||||
APP_NAME: "SIDATA"
|
APP_NAME: "SIDATA"
|
||||||
|
|||||||
Reference in New Issue
Block a user