Skip to content

Commit b0250b1

Browse files
committed
add public backend & cors vars
1 parent d50f514 commit b0250b1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/deploy-to-node.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
LOGURU_LEVEL: ${{ vars.LOGURU_LEVEL }}
6565
MAINTENANCE_MODE: ${{ vars.MAINTENANCE_MODE }}
6666
BACKEND_URL: ${{ vars.BACKEND_URL }}
67+
PUBLIC_BACKEND_URL: ${{ vars.PUBLIC_BACKEND_URL }}
68+
BACKEND_CORS_ORIGINS: ${{ vars.BACKEND_CORS_ORIGINS }}
6769
steps:
6870
- name: Checkout
6971
uses: actions/checkout@v2

‎ansible/deploy-to-node.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@
157157
LOGURU_LEVEL:
158158
"{{ lookup('ansible.builtin.env', 'LOGURU_LEVEL') | default('INFO',
159159
true) }}"
160+
BACKEND_CORS_ORIGINS:
161+
"{{ lookup('ansible.builtin.env', 'BACKEND_CORS_ORIGINS') }}"
160162
ports:
161163
- "{{ backend_port }}:8080"
162164

@@ -192,6 +194,8 @@
192194
"{{ lookup('ansible.builtin.env', 'WEB_EMAIL_SERVER_USER') }}"
193195
FASTAPI_URL: "{{ lookup('ansible.builtin.env', 'BACKEND_URL') }}"
194196
FASTAPI_KEY: "{{ web_api_key }}"
197+
NEXT_PUBLIC_BACKEND_URL:
198+
"{{ lookup('ansible.builtin.env', 'PUBLIC_BACKEND_URL') }}"
195199
NEXTAUTH_SECRET:
196200
"{{ lookup('ansible.builtin.env', 'WEB_NEXTAUTH_SECRET') }}"
197201
NEXTAUTH_URL:

0 commit comments

Comments
 (0)