aboutsummaryrefslogtreecommitdiffstats
path: root/nginx.conf
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-07-03 13:40:30 +0200
committerDennis Eriksen <d@ennis.no>2023-07-03 13:40:30 +0200
commit7e2187285dd58591cd07aa948cf3001cffe3ff29 (patch)
treeecb750727da84a73b7dba77f9b7c132cfb31d829 /nginx.conf
parentChanging name to purl-rs (diff)
downloadpurl-rs-7e2187285dd58591cd07aa948cf3001cffe3ff29.tar.gz
adding lincence, and some other useful stuff
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf35
1 files changed, 35 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf
new file mode 100644
index 0000000..5a1c5e3
--- /dev/null
+++ b/nginx.conf
@@ -0,0 +1,35 @@
+ # This needs to be included in a server{}-block.
+ # The basic-auth-file can be generated using `htpass -c file username`.
+
+ location /form {
+ auth_basic "purl-rs";
+ auth_basic_user_file /htpasswd/purl-rs;
+
+ include fastcgi_params;
+ fastcgi_split_path_info ^(/)(.*);
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_param SCRIPT_FILENAME /cgi-bin/purl-rs/purl-rs;
+ fastcgi_param REMOTE_USER $remote_user;
+ fastcgi_pass unix:/run/slowcgi.sock;
+ }
+
+ location /create {
+ auth_basic "purl-rs";
+ auth_basic_user_file /htpasswd/purl-rs;
+
+ include fastcgi_params;
+ fastcgi_split_path_info ^(/)(.*);
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_param SCRIPT_FILENAME /cgi-bin/purl-rs/purl-rs;
+ fastcgi_param REMOTE_USER $remote_user;
+ fastcgi_pass unix:/run/slowcgi.sock;
+ }
+
+ location ~ ^/\+[a-zA-Z0-9_-]+$ {
+ include fastcgi_params;
+ fastcgi_split_path_info ^(/)(.*);
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_param SCRIPT_FILENAME /cgi-bin/purl-rs/purl-rs;
+ fastcgi_pass unix:/run/slowcgi.sock;
+ }
+