Skip to content

Commit c21db67

Browse files
committed
feat: add environment variable for frontend base path
1 parent d41d805 commit c21db67

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v3.2.2
2+
### Feat
3+
- add subpath/base url for frontend
4+
15
## v3.2.1
26
### Fix
37
- change status from wildcard to exact match in alert and history filter

‎Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ENV UWSGI_LISTEN=100
2323
ENV UWSGI_BUFFER_SIZE=8192
2424
ENV UWSGI_MAX_WORKER_LIFETIME=30
2525
ENV UWSGI_WORKER_LIFETIME_DELTA=3
26+
ENV FRONTEND_BASE_URL=/
2627

2728
ENV HEARTBEAT_SEVERITY=major
2829

‎config/templates/app/nginx.conf.j2‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ http {
5858

5959
root /web;
6060
index index.html;
61-
location / {
61+
62+
location {{ env.FRONTEND_BASE_URL }} {
6263
try_files $uri $uri/ /index.html;
6364
}
6465
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
{"endpoint": "/api"}
1+
{
2+
"endpoint": "/api",
3+
"base": "{{ env.FRONTEND_BASE_URL }}"
4+
}

0 commit comments

Comments
 (0)