Replace hard-coded server ip with variable

This commit is contained in:
Lukáš Kucharczyk 2021-04-23 01:20:32 +02:00
parent e68922b301
commit 53c51fd235
No known key found for this signature in database
GPG Key ID: 65524498C0196B64
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
base_domain: "homelab.cz"
server_ip: "192.168.0.107"
data_folder: "{{ playbook_dir }}/docker-data"
nginx_confd_folder: "{{ data_folder }}/nginx/conf.d"
puid: "1000"

View File

@ -1,7 +1,7 @@
server {
listen 80;
server_name "jellyfin.{{ base_domain }}";
set $jellyfin 192.168.0.107;
set $jellyfin {{ server_ip }};
#resolver 127.0.0.1 valid=30;
location / {