Commit b35ed33d authored by nono's avatar nono 💻
Browse files

Modified nginx configuration and string manipulation

parent 80348157
......@@ -3,7 +3,7 @@ map $http_upgrade $connection_upgrade {
'' close;
}
server {
server_name {{ service_hedgedocs_domain.split("//")[0] | lower }};
server_name {{ service_hedgedocs_domain.split(":")[1] | lower }};
location / {
proxy_pass http://127.0.0.1:3000;
......@@ -26,8 +26,8 @@ server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/{{ service_hedgedocs_domain.split("//")[0] | lower }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ service_hedgedocs_domain.split("//")[0] | lower }}/privkey.pem;
ssl_certificate /etc/letsencrypt/live/{{ service_hedgedocs_domain.split(":")[1] | lower }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ service_hedgedocs_domain.split(":")[1] | lower }}/privkey.pem;
# Improve HTTPS performance with session resumption
ssl_session_cache shared:SSL:10m;
......
......@@ -13,7 +13,7 @@ RestartSec=2s
User=hedgedocs
Group=www-data
# the location you cloned CodiMD to.
WorkingDirectory=/home/hedgedocs
WorkingDirectory=/home/hedgedocs/hedgedoc
ExecStart=/usr/bin/npm start --production
Restart=always
PrivateTmp=true
......
Markdown is supported
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