changement d'emplacement des fichiers config spécifiques à l'environnement
Some checks failed
Build and Push Docker Image / build (push) Failing after 17s
Some checks failed
Build and Push Docker Image / build (push) Failing after 17s
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
[client]
|
||||
database = django_dev
|
||||
user = django_usr
|
||||
password = YwVHV36ovBTXWugb
|
||||
default-character-set = utf8
|
||||
host =localhost
|
||||
port =3306
|
@@ -1,7 +0,0 @@
|
||||
[client]
|
||||
database = django_dev
|
||||
user = django_usr
|
||||
password = YwVHV36ovBTXWugb
|
||||
default-character-set = utf8
|
||||
host =33.144.144.3
|
||||
port =3306
|
@@ -1,62 +0,0 @@
|
||||
from pathlib import Path
|
||||
import os
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
cfg_dev_mode = True
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
#SECRET_KEY = 'django-prod-j4jd&+4j^t_=@zr(#q@n!8e*58vkql6&_6w-t14ju8pw%ei%^s'
|
||||
SECRET_KEY = 'django-insecure-j4jd&+4j^t_=@zr(#q@n!8e*58vkql6&_6w-t14ju8pw%ei%^s'
|
||||
|
||||
|
||||
cfg_status_badge = "https://status.resk-u.ch/api/badge/22/uptime/744"
|
||||
|
||||
|
||||
ALLOWED_HOSTS = ["reskreen-back.prod.resk-u.ch"]
|
||||
ALLOWED_HOSTS.append("rh.ambulance-clerc.ch")
|
||||
ALLOWED_HOSTS.append("reskreen-back.ambulance-clerc.ch")
|
||||
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = ['https://reskreen-back.prod.resk-u.ch']
|
||||
CSRF_TRUSTED_ORIGINS.append("https://reskreen-back.ambulance-clerc.ch")
|
||||
|
||||
CORS_ALLOWED_ORIGINS = [
|
||||
"https://reskreen-val.prod.resk-u.ch",
|
||||
"https://reskreen.ambulance-clerc.ch",
|
||||
"http://33.144.144.13:4173",
|
||||
"http://33.144.144.13:5173",
|
||||
"http://33.144.144.13:3000",
|
||||
]
|
||||
|
||||
|
||||
if cfg_dev_mode:
|
||||
NEXTCLOUD_HOST = "cloud.ambulance-clerc.ch"
|
||||
else:
|
||||
NEXTCLOUD_HOST = "cloud.ambulance-clerc.ch"
|
||||
NEXTCLOUD_USER_DEFAULT_PASSWORD = "Mc144*1870"
|
||||
|
||||
if cfg_dev_mode:
|
||||
'''DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': BASE_DIR / 'db.sqlite3',
|
||||
}
|
||||
}
|
||||
'''
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'OPTIONS': {
|
||||
'read_default_file': os.path.join(BASE_DIR, 'Reskreen/my_dev.cnf'),
|
||||
},
|
||||
}
|
||||
}
|
||||
else:
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'OPTIONS': {
|
||||
'read_default_file': os.path.join(BASE_DIR, 'Reskreen/my.cnf'),
|
||||
},
|
||||
}
|
||||
}
|
@@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
|
||||
|
||||
from pathlib import Path
|
||||
import os
|
||||
from Reskreen.server_config import *
|
||||
from config.server_config import *
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
Reference in New Issue
Block a user