We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63406cb commit 3e6865eCopy full SHA for 3e6865e
1 file changed
_hosts/media.codonaft/etc/nginx/http.d/userscripts.conf
@@ -28,14 +28,20 @@ server {
28
ssl_certificate_key /etc/nginx/ssl/codonaft.com/privkey.pem;
29
ssl_trusted_certificate /etc/nginx/ssl/codonaft.com/chain.pem;
30
31
+ set $target https://raw.githubusercontent.com/codonaft/userscripts/refs/heads/main;
32
+
33
location = / {
34
return 301 https://github.com/codonaft/userscripts;
35
}
36
37
+ location ~ ^/(.*?)(?<!\.user)\.js$ {
38
+ return 301 $target/$1.user.js;
39
+ }
40
41
location / {
42
add_header Cache-Control "public, max-age=7200";
43
expires 2h;
44
default_type "text/plain";
- return 301 https://raw.githubusercontent.com/codonaft/userscripts/refs/heads/main$request_uri;
45
+ return 301 $target$request_uri;
46
47
0 commit comments