1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 05:17:39 +03:00
This commit is contained in:
Anton Afanasyeu
2026-06-11 21:56:09 +02:00
parent 775948a3b5
commit a656a04511
8 changed files with 285 additions and 65 deletions

View File

@@ -31,6 +31,8 @@ nginx -t && rc-service nginx reload
nginx -t && rc-service nginx reload
```
**Alpine/nginx note:** regex locations with `{n,m}` quantifiers must be **double-quoted** or nginx parses `{` as a block delimiter (`nginx: [emerg] improper regexp`).
## Verify
```bash

View File

@@ -16,8 +16,8 @@ server {
try_files $uri /index.php?$query_string;
}
# Short slug redirect (1216 hex chars)
location ~ ^/[a-f0-9]{6,16}$ {
# Short slug redirect (616 hex chars). Regex MUST be quoted — bare {6,16} breaks nginx -t.
location ~ "^/[a-f0-9]{6,16}$" {
try_files $uri /index.php?$query_string;
}