This commit is contained in:
Charlotte 🦝 Delenk 2022-08-26 17:00:06 +01:00
parent 586f1f27bf
commit 8131d1444b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 7 additions and 5 deletions

View file

@ -13,9 +13,9 @@
useACMEHost = "chir.rs";
extraConfig = ''
import baseConfig
rewrite * /api.chir.rs/{path}
reverse_proxy {
to http://localhost:8621
rewrite * /api.chir.rs/{path}
}
'';
};

View file

@ -31,9 +31,10 @@ in {
extraConfig = ''
import baseConfig
rewrite * /file/darkkirb-de/{path}
reverse_proxy {
to https://f000.backblazeb2.com
rewrite * /file/darkkirb-de/{path}
header_up Host {upstream_hostport}
transport http {

View file

@ -9,12 +9,12 @@
useACMEHost = "chir.rs";
extraConfig = ''
import baseConfig
${extra}
reverse_proxy {
to ${dest}
header_up Host {upstream_hostport}
${extra}
transport http {
versions 1.1 2 3
}
@ -51,6 +51,8 @@ in {
@getOnly {
method GET
}
rewrite * /file/mastodon-chir-rs/{path}
reverse_proxy @getOnly {
to https://f000.backblazeb2.com
header_up Host {upstream_hostport}
@ -60,7 +62,6 @@ in {
header_down -Access-Control-Allow-Methods
header_down Access-Control-Allow-Headers
header_up -Set-Cookie
rewrite * /file/mastodon-chir-rs/{path}
transport http {
versions 1.1 2 3