Replace hard-coded server ip with variable
This commit is contained in:
parent
e68922b301
commit
53c51fd235
|
@ -1,4 +1,5 @@
|
||||||
base_domain: "homelab.cz"
|
base_domain: "homelab.cz"
|
||||||
|
server_ip: "192.168.0.107"
|
||||||
data_folder: "{{ playbook_dir }}/docker-data"
|
data_folder: "{{ playbook_dir }}/docker-data"
|
||||||
nginx_confd_folder: "{{ data_folder }}/nginx/conf.d"
|
nginx_confd_folder: "{{ data_folder }}/nginx/conf.d"
|
||||||
puid: "1000"
|
puid: "1000"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name "jellyfin.{{ base_domain }}";
|
server_name "jellyfin.{{ base_domain }}";
|
||||||
set $jellyfin 192.168.0.107;
|
set $jellyfin {{ server_ip }};
|
||||||
#resolver 127.0.0.1 valid=30;
|
#resolver 127.0.0.1 valid=30;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
Loading…
Reference in New Issue