Skip to content

adding support for varnish during generates #2306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 21, 2025
Merged
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
2 changes: 2 additions & 0 deletions roles/debian/nginx/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ nginx:
cache_behavior_public: "add_header Cache-Control \"public, max-age=604800\""
proxy_host: localhost
proxy_port: 8443
# Set a custom port for Let's Encrypt to bind to during the initial certificate run
# vhost_letsencrypt_port: []
# You can inject custom directives into the main nginx.conf file here by providing them as a list of strings.
#custom_directives: []
# Group prefix. Useful for grouping by environments.
Expand Down
4 changes: 4 additions & 0 deletions roles/debian/nginx/templates/vhost_letsencrypt.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### {{ ansible_managed }}

server {
{% if nginx.vhost_letsencrypt_port is defined %}
listen {{ nginx.vhost_letsencrypt_port }};
{% else %}
listen 80;
{% endif %}
server_name {{ domain.server_name }};
error_log {{ domain.error_log }} {{ domain.error_log_level }};
access_log {{ domain.access_log }} {{ domain.access_log_format | default('main') }};
Expand Down
Loading