Add netbox service to curiosity

This commit is contained in:
Théo Barnouin 2024-09-24 16:05:59 +02:00
parent aa5924e620
commit 46ac6032ae
2 changed files with 56 additions and 35 deletions

View file

@ -15,40 +15,40 @@ in
enable = true;
port = 8001;
settings = {
ALLOWED_HOSTS = [ "*" ],
DATABASE = {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'netbox',
'USER': 'netbox',
'PASSWORD': 'Netbox43Zer!',
'HOST': '192.168.1.13',
'PORT': '5432',
'CONN_MAX_AGE': 300,
},
ALLOWED_HOSTS = [ "*" ];
DATABASE = lib.mkForce {
ENGINE = "django.db.backends.postgresql";
NAME = "netbox";
USER = "netbox";
PASSWORD = "Netbox43Zer!";
HOST = "192.168.1.13";
PORT = 5432;
CONN_MAX_AGE = 300;
};
REDIS = {
'tasks': {
'HOST': '192.168.1.16',
'PORT': 6379,
'USERNAME': '',
'PASSWORD': '',
'DATABASE': 0,
'SSL': False,
},
'caching': {
'HOST': '192.168.1.16',
'PORT': 6379,
'USERNAME': '',
'PASSWORD': '',
'DATABASE': 1,
'SSL': False,
}
},
CSRF_COOKIE_NAME = 'csrftoken',
CSRF_TRUSTED_ORIGINS = (
'http://192.168.1.40',
'https://netbox.le43.eu',
),
DEBUG = False
tasks = {
HOST = "192.168.1.16";
PORT = 6379;
USERNAME = "";
PASSWORD = "";
DATABASE = 0;
SSL = false;
};
caching = {
HOST = "192.168.1.16";
PORT = 6379;
USERNAME = "";
PASSWORD = "";
DATABASE = 1;
SSL = false;
};
};
CSRF_COOKIE_NAME = "csrftoken";
CSRF_TRUSTED_ORIGINS = [
"http://192.168.1.40"
"https://netbox.le43.eu"
];
DEBUG = false;
};
secretKeyFile = "/run/secrets/netbox/keyFile";
};