Add CORS configuration to SatHub service for improved API access
This commit is contained in:
@@ -6,6 +6,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- GIN_MODE=release
|
- GIN_MODE=release
|
||||||
- FRONTEND_URL=${FRONTEND_URL:-https://sathub.de}
|
- FRONTEND_URL=${FRONTEND_URL:-https://sathub.de}
|
||||||
|
- CORS_ALLOWED_ORIGINS={{ cors_allowed_origins | default('') }}
|
||||||
|
|
||||||
# Database settings
|
# Database settings
|
||||||
- DB_TYPE=postgres
|
- DB_TYPE=postgres
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
frontend_api_base_url: "https://api.sathub.de"
|
frontend_api_base_url: "https://api.sathub.de"
|
||||||
frontend_allowed_hosts: "sathub.de,sathub.nl"
|
frontend_allowed_hosts: "sathub.de,sathub.nl"
|
||||||
|
cors_allowed_origins: "https://sathub.nl,https://api.sathub.de,https://obj.sathub.de"
|
||||||
|
|
||||||
- name: Create SatHub directory
|
- name: Create SatHub directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|||||||
Reference in New Issue
Block a user