Writes configuration files for nginx based on running services and certificates
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

nginx.tpl 477B

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