Writes configuration files for nginx based on running services and certificates
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

nginx.tpl 414B

12345678910111213141516
  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. include {{ service.vhosts[0] }}/*.conf;
  9. location / {
  10. proxy_pass {{ service.protocol }}://{{ service.host }}:{{ service.port }};
  11. }
  12. }
  13. {% endfor %}