Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
e-carlin committed Dec 18, 2024
1 parent 3c70ad9 commit 325d94a
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
server {
listen v3.radia.run:80;
server_name v3.radia.run;
return 301 https://v3.radia.run$request_uri;
}

server {
listen v3.radia.run:443 ssl;
server_name v3.radia.run;
root /usr/share/nginx/html;
ssl_certificate /etc/nginx/conf.d/v3.radia.run.crt;
ssl_certificate_key /etc/nginx/conf.d/v3.radia.run.key;
keepalive_timeout 0;

location / {
root /home/vagrant/src/radiasoft/rsconf/tests/pkcli/build1_work/1/srv;
try_files $uri $uri/index.sh $uri/index.html =404;
}

location = /host/ {
return 404;
}

location ~ ^/host/([^/]+)/ {
auth_basic "*";
auth_basic_user_file /etc/nginx/conf.d/rsconf_auth;
# DEBUG: return 200 $remote_user;
if ($remote_user != $1) {
return 403;
}
root /home/vagrant/src/radiasoft/rsconf/tests/pkcli/build1_work/1/srv;
}

location /kickstart/ {
allow v9.radia.run;
allow v4.radia.run;
allow v3.radia.run;
allow v5.radia.run;
allow v6.radia.run;

deny all;
}
}

0 comments on commit 325d94a

Please sign in to comment.