fix: build ask binary inside Docker for Linux x86_64

This commit is contained in:
2026-03-28 15:09:17 +01:00
parent 36eb480687
commit 0c1f09529a
2 changed files with 52 additions and 47 deletions

View File

@@ -1,51 +1,50 @@
http://ask.xn--2dk.xyz {
handle / {
:8080 {
# Route based on Host header (set by haloy)
@ask {
host ask.xn--2dk.xyz
}
@db {
host db.xn--2dk.xyz
}
handle @ask {
reverse_proxy localhost:7682 {
flush_interval -1
}
}
}
https://ask.xn--2dk.xyz {
tls admin@xn--2dk.xyz
handle / {
reverse_proxy localhost:7682 {
flush_interval -1
}
}
}
https://db.xn--2dk.xyz {
handle /health {
respond 200
}
handle /login {
reverse_proxy 127.0.0.1:8081
}
handle /query {
reverse_proxy 127.0.0.1:8081
}
@websocket {
header Connection *Upgrade*
header Upgrade websocket
}
handle @websocket {
reverse_proxy localhost:7681 {
flush_interval -1
}
}
handle {
forward_auth 127.0.0.1:8081 {
uri /auth
copy_headers Cookie
}
reverse_proxy localhost:7681 {
flush_interval -1
handle @db {
handle /health {
respond 200
}
handle /login {
reverse_proxy 127.0.0.1:8081
}
handle /query {
reverse_proxy 127.0.0.1:8081
}
@websocket {
header Connection *Upgrade*
header Upgrade websocket
}
handle @websocket {
reverse_proxy localhost:7681 {
flush_interval -1
}
}
handle {
forward_auth 127.0.0.1:8081 {
uri /auth
copy_headers Cookie
}
reverse_proxy localhost:7681 {
flush_interval -1
}
}
}
}