From 7e2187285dd58591cd07aa948cf3001cffe3ff29 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 3 Jul 2023 13:40:30 +0200 Subject: adding lincence, and some other useful stuff --- nginx.conf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 nginx.conf (limited to 'nginx.conf') 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; + } + -- cgit v1.2.3