"feat: Implement new deployment configuration and database setup for Raspberry Pi"
This commit is contained in:
@@ -37,7 +37,7 @@ PRINTERS = {
|
||||
}
|
||||
|
||||
# Logging-Konfiguration
|
||||
LOG_DIR = "/home/user/Projektarbeit-MYP/backend/app/logs"
|
||||
LOG_DIR = os.path.join(BASE_DIR, "logs")
|
||||
LOG_SUBDIRS = ["app", "scheduler", "auth", "jobs", "printers", "errors"]
|
||||
LOG_LEVEL = "INFO"
|
||||
LOG_FORMAT = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
||||
@@ -52,9 +52,9 @@ SESSION_LIFETIME = timedelta(days=7)
|
||||
|
||||
# SSL-Konfiguration
|
||||
SSL_ENABLED = get_env_variable("MYP_SSL_ENABLED", "True").lower() in ("true", "1", "yes")
|
||||
SSL_CERT_PATH = "/home/user/Projektarbeit-MYP/backend/certs/myp.crt"
|
||||
SSL_KEY_PATH = "/home/user/Projektarbeit-MYP/backend/certs/myp.key"
|
||||
SSL_HOSTNAME = get_env_variable("MYP_SSL_HOSTNAME", "raspberrypi")
|
||||
SSL_CERT_PATH = os.path.join(BASE_DIR, "certs", "myp.crt")
|
||||
SSL_KEY_PATH = os.path.join(BASE_DIR, "certs", "myp.key")
|
||||
SSL_HOSTNAME = get_env_variable("MYP_SSL_HOSTNAME", "localhost")
|
||||
|
||||
# Scheduler-Konfiguration
|
||||
SCHEDULER_INTERVAL = 60 # Sekunden
|
||||
|
Reference in New Issue
Block a user