Add etherpad

This commit is contained in:
polyfloyd 2022-10-31 21:19:33 +01:00
parent fb420558c9
commit 37a91000f4
9 changed files with 314 additions and 0 deletions

View file

@ -0,0 +1,33 @@
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name {{ etherpad_domain }};
{% if acme_bootstrap_certs %}
include "snippets/snakeoil.conf";
{% else %}
ssl_certificate "/var/lib/dehydrated/certs/{{ etherpad_domain }}/fullchain.pem";
ssl_certificate_key "/var/lib/dehydrated/certs/{{ etherpad_domain }}/privkey.pem";
{% endif %}
location / {
proxy_pass http://127.0.0.1:9001/;
include proxy_params;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
include "snippets/acme.conf";
}
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name {{ etherpad_domain }};
location / {
rewrite ^/(.*) https://$server_name$request_uri? redirect;
}
include "snippets/acme.conf";
}