diff --git a/compose.yaml b/compose.yaml index 6d9ae4c..e971f59 100644 --- a/compose.yaml +++ b/compose.yaml @@ -33,7 +33,9 @@ services: if [ ! -f /certs/ca.crt ]; then openssl genrsa -out /certs/ca.key 4096 openssl req -x509 -new -nodes -key /certs/ca.key -sha256 -days 3650 \ - -subj "$${CA_SUBJECT}" -out /certs/ca.crt + -subj "$${CA_SUBJECT}" -out /certs/ca.crt \ + -addext "keyUsage=critical,keyCertSign,cRLSign" \ + -addext "basicConstraints=critical,CA:TRUE" fi # --- LB external server cert --- if [ ! -f /certs/server.crt ]; then @@ -656,6 +658,12 @@ services: cap_add: - NET_BIND_SERVICE - CHOWN + # lab7 fix: nginx master стартует от root и сбрасывает привилегии + # воркеров до пользователя nginx (UID 101). Для setgid/setuid нужны + # соответствующие capabilities, иначе воркеры падают с + # "setgid(101) failed (1: Operation not permitted)". + - SETGID + - SETUID restart: unless-stopped deploy: resources: