Skip to content

Commit d7b560a

Browse files
committed
feat: add frontend_base_url to backend
1 parent da99dd2 commit d7b560a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[DEFAULT]
22
sslverify = no
33
output = presto
4-
endpoint = http://localhost:8080/api
4+
endpoint = http://localhost:8080{{ env.FRONTEND_BASE_URL }}api
55
timezone = Europe/London
66
{%- if env.API_KEY %}
77
key = {{ env.API_KEY }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ http {
4646

4747
access_log /dev/stdout main;
4848

49-
location /api {
49+
location {{ env.FRONTEND_BASE_URL }}api {
5050
include /etc/nginx/uwsgi_params;
5151
uwsgi_pass backend;
5252

‎config/templates/app/uwsgi.ini.j2‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ log-route = info ^\D
44
chdir = /app
55
module = wsgi
66
manage-script-name = true
7-
mount = /api=wsgi:app
7+
mount = {{ env.FRONTEND_BASE_URL }}api=wsgi:app
88
master = true
99
processes = {{ env.UWSGI_PROCESSES }}
1010
listen = {{ env.UWSGI_LISTEN }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"endpoint": "/api",
2+
"endpoint": "{{ env.FRONTEND_BASE_URL }}api",
33
"base": "{{ env.FRONTEND_BASE_URL }}"
44
}

0 commit comments

Comments
 (0)