Skip to content

Commit

Permalink
work in progress for idaholab#331, improvements to extracted_files_ht…
Browse files Browse the repository at this point in the history
…tp_server.py and the setting/creation of ACL rules on hedgehog
  • Loading branch information
mmguero committed Apr 1, 2024
1 parent d319392 commit 9a51ee4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nginx/nginx_readonly.conf
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ http {
proxy_set_header Host file-monitor.malcolm.local;
}

# extracted file download hedgehog redirect
location ~* ^/hh-extracted-files/([a-zA-Z0-9-\.]+)\b(.*) {
set $upstream $1:8006;
rewrite ^/hh-extracted-files/([a-zA-Z0-9-\.]+)(.*)$ $2 break;
proxy_pass https://$upstream;
proxy_ssl_verify off;
proxy_set_header Host $1;
proxy_set_header X-Malcolm-Forward "/hh-extracted-files/$1";
}

# netbox
location /netbox {
limit_except GET { deny all; }
Expand Down

0 comments on commit 9a51ee4

Please sign in to comment.