Commit 798ceaaa authored by nono's avatar nono 💻
Browse files

Added string manipulation to nginx servername variable

parent 5fda5ac2
......@@ -3,7 +3,7 @@ map $http_upgrade $connection_upgrade {
'' close;
}
server {
server_name {{ service_hedgedocs_domain }};
server_name {{ service_hedgedocs_domain.split("https://")[0] | lower }};
location / {
proxy_pass http://127.0.0.1:3000;
......@@ -29,8 +29,6 @@ server {
ssl_certificate /etc/letsencrypt/live/{{ service_hedgedocs_domain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ service_hedgedocs_domain }}/fullchain.pem;
include options-ssl-nginx.conf;
# Improve HTTPS performance with session resumption
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
......
......@@ -5,7 +5,7 @@
- name: Configuration du service HedgeDocs
template:
src: files/config.json.j2
dest: /home/hedgedocs/hedgedoc/onfig.json
dest: /home/hedgedocs/hedgedoc/config.json
owner: hedgedocs
group: www-data
mode: 0644
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment