Add CORS configuration to SatHub service for improved API access
All checks were successful
Ansible Lint Check / check-ansible (push) Successful in 4s
Nix Format Check / check-format (push) Successful in 1m12s
Python Lint Check / check-python (push) Successful in 8s

This commit is contained in:
2025-09-29 01:29:55 +02:00
parent 95bc4540db
commit 3a22417315
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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: