# Environment

* refactors settings into env usage
* adds proxy usage for schneider parcel fetching (using public web address instead of internal ip address)
This commit is contained in:
2024-04-03 13:45:08 +02:00
parent 04dc7fcd30
commit 1a80912960
14 changed files with 88 additions and 55 deletions

View File

@@ -5,7 +5,8 @@ Contact: ksp-servicestelle@sgdnord.rlp.de
Created on: 14.12.22
"""
from konova.sub_settings.django_settings import env
base_url = "http://127.0.0.1:8002"
auth_header = "auth"
auth_header_token = "CHANGE_ME"
base_url = env("SCHNEIDER_BASE_URL")
auth_header = env("SCHNEIDER_AUTH_HEADER")
auth_header_token = env("SCHNEIDER_AUTH_TOKEN")