fixed onion_address.content base64 decode issue

This commit is contained in:
muppeth 2023-01-17 16:27:14 +01:00
parent 79448def24
commit f1dca5629a
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
{% if item.onion is defined and enable_tor == 'true' and onion_address | length > 0 %}
server {
listen unix:/var/run/{{ item.name }}.sock;
server_name {{ onion_address.content | b64decode }}.onion;
server_name {{ onion_address.content | b64decode | trim }};
{% else %}
server {
server_name {% if item.name is string %}{{ item.name }}{% else %}{{ item.name | join(' ') }}{% endif %};