Switch from nginx to caddy
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
:8080 {
|
||||||
|
# 1. Exact match redirect from root to the repo
|
||||||
|
redir / /fdroid/repo/ 302
|
||||||
|
|
||||||
|
# 2. Redirect without trailing slash to ensure correct routing
|
||||||
|
redir /fdroid/repo /fdroid/repo/ 302
|
||||||
|
|
||||||
|
# 3. Strip '/fdroid/repo' from the URL and serve the underlying files
|
||||||
|
handle_path /fdroid/repo/* {
|
||||||
|
root * /repo/fdroid/repo
|
||||||
|
file_server browse
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 8080;
|
|
||||||
server_name = fdroid.julian-mutter.de;
|
|
||||||
|
|
||||||
location = / {
|
|
||||||
return 302 /fdroid/repo;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /fdroid/repo {
|
|
||||||
alias /repo/fdroid/repo/;
|
|
||||||
autoindex on;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user