-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
tests/pkcli/build1_data/1.out/srv/host/v3.radia.run/etc/nginx/conf.d/v3.radia.run.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |