Writes configuration files for nginx based on running services and certificates
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nginx.tpl 369B

1234567891011121314
  1. {% for service in services %}
  2. server {
  3. server_name {{ ' '.join(service.vhosts) }};
  4. listen [::]:443 ssl http2;
  5. listen 443 ssl http2;
  6. ssl_certificate {{ service.certificate }};
  7. ssl_certificate_key {{ service.certificate_key }};
  8. location / {
  9. proxy_pass {{ service.protocol }}://{{ service.host }}:{{ service.port }};
  10. }
  11. }
  12. {% endfor %}