Airgap Time

This commit is contained in:
Mike Reeves
2020-09-03 10:35:12 -04:00
parent 9745191f19
commit b2ee757db2
5 changed files with 39 additions and 15 deletions

View File

@@ -184,16 +184,15 @@ http {
}
{%- if ISAIRGAP is sameas true %}
location /repo/ {
#auth_request /auth/sessions/whoami;
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Proxy "";
proxy_set_header X-Forwarded-Proto $scheme;
}
location /repo/ {
allow all;
sendfile on;
sendfile_max_chunk 1m;
autoindex on;
autoindex_exact_size off;
autoindex_format html;
autoindex_localtime on;
}
{%- endif %}