Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ FEATURES:
- Add support for installing NGINX Open Source and NGINX Plus on Alpine Linux 3.21.
- Add a parameter, `nginx_distribution_package`, to override the default NGINX package name when installing NGINX from your distribution/OS repository.
- Add a parameter, `nginx_skip_os_install_config_check`, to turn off the NGINX config check handler when installing NGINX from the respective distribution package manager. This should help avoid potential issues where the default NGINX config that ships with a distribution is broken for some reason.
- Add a parameter, `nginx_service_after`, to start the service after this list of systemd units.

BUG FIXES:

Expand Down
6 changes: 6 additions & 0 deletions defaults/main/systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ nginx_service_overridefilename: override.conf
# Default is to comment this out
# nginx_service_restartsec: 5s

# Start the service after these units
# [Unit]
# After=
# Default is to comment this out
# nginx_service_after: []

# Enable a custom systemd override file
# ** This could break the service **
# Setting this to true disables custom values above
Expand Down
5 changes: 5 additions & 0 deletions templates/services/nginx.service.override.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ Restart={{ nginx_service_restart }}
{% if nginx_service_restartsec is defined %}
RestartSec={{ nginx_service_restartsec }}
{% endif %}

[Unit]
{% if nginx_service_after %}
After={{ nginx_service_after | join(" ") }}
{% endif %}
Loading