mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-04-28 02:31:15 +08:00
Update .env values and set up woodpecker.yml
This commit is contained in:
parent
d8065bc70a
commit
67a20a3330
5 changed files with 41 additions and 6 deletions
|
@ -37,8 +37,10 @@ def get_secret(secret_name):
|
|||
# URL Prefixes
|
||||
USE_HTTPS = (get_secret('USE_HTTPS') == 'True')
|
||||
URL_PREFIX = 'https://' if USE_HTTPS else 'http://'
|
||||
BACKEND_URL = URL_PREFIX + get_secret('BACKEND_URL')
|
||||
FRONTEND_URL = URL_PREFIX + get_secret('FRONTEND_URL')
|
||||
BACKEND_URL = URL_PREFIX + \
|
||||
get_secret('BACKEND_ADDRESS') + ':' + get_secret('BACKEND_PORT')
|
||||
FRONTEND_URL = URL_PREFIX + \
|
||||
get_secret('FRONTEND_ADDRESS') + ':' + get_secret('FRONTEND_PORT')
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue