From c0375a36f99535da5790e2800e8679c727d9e01f Mon Sep 17 00:00:00 2001 From: MDreW Date: Mon, 18 Nov 2024 10:15:39 +0100 Subject: [PATCH 1/2] added build option for regenerate satosa-saml2spid image on startup with `--build` option on `docker compose` --- Docker-compose/docker-compose.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Docker-compose/docker-compose.yml b/Docker-compose/docker-compose.yml index 1df89b9..f226866 100644 --- a/Docker-compose/docker-compose.yml +++ b/Docker-compose/docker-compose.yml @@ -62,12 +62,9 @@ services: satosa-saml2spid: image: ghcr.io/italia/satosa-saml2spid:latest - #image: satosa-saml2spid:latest - #build: - # context: ../ - # args: - # - NODE_ENV=local - # dockerfile: Dockerfile + build: + context: ../ + dockerfile: Dockerfile container_name: satosa-saml2spid # depends_on: # - satosa-mongo From 249afa8628116bd00a1b4c4af1efc1675b8ac732 Mon Sep 17 00:00:00 2001 From: MDreW Date: Mon, 18 Nov 2024 10:16:54 +0100 Subject: [PATCH 2/2] commented unused log handlers --- example/proxy_conf.yaml | 56 ++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/example/proxy_conf.yaml b/example/proxy_conf.yaml index b13046d..4fb0af7 100644 --- a/example/proxy_conf.yaml +++ b/example/proxy_conf.yaml @@ -50,39 +50,39 @@ LOGGING: syslog: format: "[SATOSA] [%(name)s] [%(levelname)s]: %(message)s" handlers: - spid_daily: - class: logging.handlers.TimedRotatingFileHandler - level: INFO - formatter: simple - filename: logs/spid.log - when: D - interval: 1 - backupCount: 860 - syslog: - class: logging.handlers.SysLogHandler - level: INFO - formatter: syslog console: class: logging.StreamHandler level: DEBUG formatter: simple stream: ext://sys.stdout - saml2_debug_file: - class: logging.handlers.RotatingFileHandler - level: DEBUG - formatter: simple - filename: logs/saml2_debug.log - maxBytes: 104857600 # 100MB - backupCount: 20 - encoding: utf8 - oidcop_debug_file: - class: logging.handlers.RotatingFileHandler - level: DEBUG - formatter: simple - filename: logs/oidcop_debug.log - maxBytes: 104857600 # 100MB - backupCount: 20 - encoding: utf8 + #spid_daily: + # class: logging.handlers.TimedRotatingFileHandler + # level: INFO + # formatter: simple + # filename: logs/spid.log + # when: D + # interval: 1 + # backupCount: 860 + #syslog: + # class: logging.handlers.SysLogHandler + # level: INFO + # formatter: syslog + # saml2_debug_file: + # class: logging.handlers.RotatingFileHandler + # level: DEBUG + # formatter: simple + # filename: logs/saml2_debug.log + # maxBytes: 104857600 # 100MB + # backupCount: 20 + # encoding: utf8 + #oidcop_debug_file: + # class: logging.handlers.RotatingFileHandler + # level: DEBUG + # formatter: simple + # filename: logs/oidcop_debug.log + # maxBytes: 104857600 # 100MB + # backupCount: 20 + # encoding: utf8 loggers: satosa: level: INFO