Merge pull request #150 from world-direct/fix/149

keycloak_quarkus: allow ports <1024 (e.g. :443) in systemd unit
This commit is contained in:
Guido Grazioli 2024-01-16 09:04:54 +01:00 committed by GitHub
commit 40229631e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,9 @@ Restart=always
Restart=on-failure
{% endif %}
RestartSec={{ keycloak_quarkus_service_restartsec }}
{% if keycloak_quarkus_http_port|int < 1024 or keycloak_quarkus_https_port|int < 1024 %}
AmbientCapabilities=CAP_NET_BIND_SERVICE
{% endif %}
[Install]
WantedBy=multi-user.target