fix: implement ingress rewrite and asset_url for subpath routing
This commit is contained in:
@@ -14,10 +14,13 @@ service:
|
|||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: nginx
|
className: nginx
|
||||||
annotations: {} # Anotasi rewrite dan regex dihapus agar path tidak terpotong
|
annotations:
|
||||||
|
# KITA AKTIFKAN KEMBALI REWRITE DI SINI
|
||||||
|
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 # Diubah dari ImplementationSpecific menjadi Prefix
|
pathType: ImplementationSpecific
|
||||||
|
|
||||||
env:
|
env:
|
||||||
APP_NAME: "SIDATA"
|
APP_NAME: "SIDATA"
|
||||||
@@ -25,6 +28,7 @@ env:
|
|||||||
APP_KEY: "base64:JWoCrp63f8mipgiOWhwpIG+YVpw1Lunn4RZf0mcBWNg="
|
APP_KEY: "base64:JWoCrp63f8mipgiOWhwpIG+YVpw1Lunn4RZf0mcBWNg="
|
||||||
APP_DEBUG: "false"
|
APP_DEBUG: "false"
|
||||||
APP_URL: "https://dashboard-bpkd.drc-bpkd.data-center.id/sidata"
|
APP_URL: "https://dashboard-bpkd.drc-bpkd.data-center.id/sidata"
|
||||||
|
# ASSET_URL MEMASTIKAN CSS/JS TETAP MEMILIKI PREFIX /sidata
|
||||||
ASSET_URL: "https://dashboard-bpkd.drc-bpkd.data-center.id/sidata"
|
ASSET_URL: "https://dashboard-bpkd.drc-bpkd.data-center.id/sidata"
|
||||||
LOG_CHANNEL: "stack"
|
LOG_CHANNEL: "stack"
|
||||||
LOG_LEVEL: "debug"
|
LOG_LEVEL: "debug"
|
||||||
|
|||||||
Reference in New Issue
Block a user