Skip to content

Commit

Permalink
configure reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Nov 4, 2024
1 parent 307685c commit 160f240
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
19 changes: 13 additions & 6 deletions fly/applications/caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# {
# auto_https off
# }
{
auto_https off
log {
level DEBUG
}
}
:8080 {
# redirect Rogue Scholar legacy URLs
route {
@posts path /posts/*
@lang path /en/* /de/* /es/* /fr/* /it/* /pt/* /tr/*
@legacy path /about /board
@query query p=* q=*

# redirect Rogue Scholar legacy URLs
redir @posts https://legacy.rogue-scholar.org{uri}
redir @lang https://legacy.rogue-scholar.org{uri}
redir @legacy https://legacy.rogue-scholar.org{uri}
Expand All @@ -28,7 +27,15 @@
uri replace /blogs /communities
uri replace /blogs/* /communities/*

redir https://beta.rogue-scholar.org{uri}
# reverse_proxy 66.241.124.87
uri query query>q
uri query page>p
uri query -category
uri query -generator
uri query -tags
uri query -language

reverse_proxy 2a09:8280:1::39:a377:0 {
header_up Host beta.rogue-scholar.org
}
}
}
1 change: 0 additions & 1 deletion fly/applications/caddy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
FROM caddy:2.8.4

COPY ./Caddyfile /etc/caddy/Caddyfile

0 comments on commit 160f240

Please sign in to comment.