forked from bitlair/ansible
Add etherpad
This commit is contained in:
parent
fb420558c9
commit
37a91000f4
9 changed files with 314 additions and 0 deletions
33
roles/etherpad/templates/nginx-site.conf
Normal file
33
roles/etherpad/templates/nginx-site.conf
Normal 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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue