diff --git a/roles/nginx/templates/vhosts/medias.m.nintendojo.fr.conf.j2 b/roles/nginx/templates/vhosts/medias.m.nintendojo.fr.conf.j2 deleted file mode 100644 index 2be9be1..0000000 --- a/roles/nginx/templates/vhosts/medias.m.nintendojo.fr.conf.j2 +++ /dev/null @@ -1,14 +0,0 @@ -server { -{% include './templates/header.conf.j2' %} - - location / { - proxy_pass http://web_backend_{{ item.split('.')|join('_') }}; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $host; - } -} - -upstream web_backend_{{ item.split('.')|join('_') }} { - # If you have a garage instance locally. - server [::1]:3902; -} diff --git a/roles/nginx/templates/vhosts/medias.m.nintendojo.fr.conf.j2 b/roles/nginx/templates/vhosts/medias.m.nintendojo.fr.conf.j2 new file mode 120000 index 0000000..974077c --- /dev/null +++ b/roles/nginx/templates/vhosts/medias.m.nintendojo.fr.conf.j2 @@ -0,0 +1 @@ +web.garage.mateu.be.conf.j2 \ No newline at end of file diff --git a/roles/nginx/templates/vhosts/peertube-playlists-ndfr.garage.mateu.be.conf.j2 b/roles/nginx/templates/vhosts/peertube-playlists-ndfr.garage.mateu.be.conf.j2 new file mode 120000 index 0000000..8abe5a8 --- /dev/null +++ b/roles/nginx/templates/vhosts/peertube-playlists-ndfr.garage.mateu.be.conf.j2 @@ -0,0 +1 @@ +garage.mateu.be.conf.j2 \ No newline at end of file diff --git a/roles/nginx/templates/vhosts/peertube-videos-ndfr.garage.mateu.be.conf.j2 b/roles/nginx/templates/vhosts/peertube-videos-ndfr.garage.mateu.be.conf.j2 new file mode 120000 index 0000000..8abe5a8 --- /dev/null +++ b/roles/nginx/templates/vhosts/peertube-videos-ndfr.garage.mateu.be.conf.j2 @@ -0,0 +1 @@ +garage.mateu.be.conf.j2 \ No newline at end of file diff --git a/roles/nginx/templates/vhosts/playlists.p.nintendojo.fr.conf.j2 b/roles/nginx/templates/vhosts/playlists.p.nintendojo.fr.conf.j2 new file mode 120000 index 0000000..974077c --- /dev/null +++ b/roles/nginx/templates/vhosts/playlists.p.nintendojo.fr.conf.j2 @@ -0,0 +1 @@ +web.garage.mateu.be.conf.j2 \ No newline at end of file diff --git a/roles/nginx/templates/vhosts/videos.p.nintendojo.fr.conf.j2 b/roles/nginx/templates/vhosts/videos.p.nintendojo.fr.conf.j2 new file mode 120000 index 0000000..974077c --- /dev/null +++ b/roles/nginx/templates/vhosts/videos.p.nintendojo.fr.conf.j2 @@ -0,0 +1 @@ +web.garage.mateu.be.conf.j2 \ No newline at end of file diff --git a/roles/nginx/templates/vhosts/web.garage.mateu.be.conf.j2 b/roles/nginx/templates/vhosts/web.garage.mateu.be.conf.j2 new file mode 100644 index 0000000..2be9be1 --- /dev/null +++ b/roles/nginx/templates/vhosts/web.garage.mateu.be.conf.j2 @@ -0,0 +1,14 @@ +server { +{% include './templates/header.conf.j2' %} + + location / { + proxy_pass http://web_backend_{{ item.split('.')|join('_') }}; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + } +} + +upstream web_backend_{{ item.split('.')|join('_') }} { + # If you have a garage instance locally. + server [::1]:3902; +}