fix reverse proxy
This commit is contained in:
parent
bab72253c0
commit
33a6152815
1 changed files with 12 additions and 12 deletions
|
@ -69,7 +69,7 @@ in {
|
|||
@getOnly {
|
||||
method GET
|
||||
}
|
||||
|
||||
|
||||
reverse_proxy @getOnly {
|
||||
@error status 500 404
|
||||
handle_response @error {
|
||||
|
@ -87,18 +87,18 @@ in {
|
|||
versions 1.1 2 3
|
||||
}
|
||||
}
|
||||
to https://cache.nixos.org
|
||||
header_up Host {upstream_hostport}
|
||||
header_up -Authorization
|
||||
header_down -Set-Cookie
|
||||
header_down Access-Control-Allow-Origin '*'
|
||||
header_down -Access-Control-Allow-Methods
|
||||
header_down Access-Control-Allow-Headers
|
||||
header_up -Set-Cookie
|
||||
}
|
||||
to https://cache.nixos.org
|
||||
header_up Host {upstream_hostport}
|
||||
header_up -Authorization
|
||||
header_down -Set-Cookie
|
||||
header_down Access-Control-Allow-Origin '*'
|
||||
header_down -Access-Control-Allow-Methods
|
||||
header_down Access-Control-Allow-Headers
|
||||
header_up -Set-Cookie
|
||||
|
||||
transport http {
|
||||
versions 1.1 2 3
|
||||
}
|
||||
transport http {
|
||||
versions 1.1 2 3
|
||||
}
|
||||
}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue