* Initial work * Setup script stub * Wrap runit and call dos2unix beforehand. * Working to the point I need to make it sync in and out of s3. * Seems like we're done and its working. * Add build process. * Add build process. * Bugfixes discovered during deployment. * Copy certs into /live because certbot is a pain. * More elegant about hammering letsencrypt. * Working!
33 lines
No EOL
860 B
Twig
33 lines
No EOL
860 B
Twig
server {
|
|
{% if allowNonSSL %}
|
|
listen 80;
|
|
listen [::]:80;
|
|
{% endif %}
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name {{ domains|join(' ') }};
|
|
access_log /var/log/bouncer/{{ name }}.access.log;
|
|
error_log /var/log/bouncer/{{ name }}.error.log;
|
|
|
|
{% if useTemporaryCert %}
|
|
ssl_certificate /certs/example.crt;
|
|
ssl_certificate_key /certs/example.key;
|
|
{% else %}
|
|
ssl_certificate /etc/letsencrypt/live/{{ name }}/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ name }}/privkey.pem;
|
|
{% endif %}
|
|
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
# ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location / {
|
|
proxy_pass {{ targetPath }};
|
|
}
|
|
}
|
|
{% if not allowNonSSL %}
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name {{ domains|join(' ') }};
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
{% endif %} |