Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
piops-roles
ansible-role-hedgedocs
Commits
798ceaaa
Commit
798ceaaa
authored
Jan 19, 2021
by
nono
💻
Browse files
Added string manipulation to nginx servername variable
parent
5fda5ac2
Changes
2
Hide whitespace changes
Inline
Side-by-side
files/etc/nginx/hedgedocs-nginx.conf.j2
View file @
798ceaaa
...
...
@@ -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;
...
...
tasks/configuration.yml
View file @
798ceaaa
...
...
@@ -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/
c
onfig.json
owner
:
hedgedocs
group
:
www-data
mode
:
0644
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment