lab-ansible/roles/apps/templates/nginx/conf.d/ipfs.conf.j2

25 lines
625 B
Plaintext
Raw Normal View History

2023-11-11 14:47:51 +00:00
# code: language=ansible-jinja
server {
listen 8080;
server_name {{ apps_vars.ipfs.domain }};
resolver 127.0.1.1;
location / {
proxy_pass http://ipfs:5001;
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 }}$;
resolver 127.0.1.1;
location / {
proxy_pass http://ipfs:8080;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
}
}