2023-12-29 18:07:08 +00:00
|
|
|
{# code: language=ansible-jinja #}
|
2023-12-23 16:52:27 +00:00
|
|
|
# THIS FILE IS MANAGED BY ANSIBLE
|
|
|
|
|
2023-11-11 14:47:51 +00:00
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
server_name {{ apps_vars.ipfs.domain }};
|
|
|
|
|
|
|
|
location / {
|
2023-12-27 23:00:12 +00:00
|
|
|
resolver 127.0.0.11 valid=30s;
|
2023-12-25 20:49:17 +00:00
|
|
|
set $upstream http://ipfs:5001;
|
|
|
|
proxy_pass $upstream;
|
2023-12-31 13:48:22 +00:00
|
|
|
|
2023-11-11 14:47:51 +00:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto "https";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
server_name ~^([\w-]+\.(ipfs|ipns)\.)?{{ apps_vars.ipfs.gateway_domain }}$;
|
|
|
|
|
|
|
|
location / {
|
2023-12-27 23:00:12 +00:00
|
|
|
resolver 127.0.0.11 valid=30s;
|
2023-12-25 20:49:17 +00:00
|
|
|
set $upstream http://ipfs:8080;
|
|
|
|
proxy_pass $upstream;
|
2023-11-11 14:47:51 +00:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto "https";
|
|
|
|
}
|
|
|
|
}
|