Allow any origin for files.lyte.dev to let git.lyte.dev use web font
This commit is contained in:
parent
6a379b4f82
commit
ed7f780338
2 changed files with 18 additions and 1 deletions
|
@ -682,6 +682,23 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
|
|||
"files.lyte.dev" = {
|
||||
# TODO: customize the files.lyte.dev template?
|
||||
extraConfig = ''
|
||||
# @options {
|
||||
# method OPTIONS
|
||||
# }
|
||||
# @corsOrigin {
|
||||
# header_regexp Origin ^https?://([a-zA-Z0-9-]+\.)*lyte\.dev$
|
||||
# }
|
||||
header {
|
||||
Access-Control-Allow-Origin "{http.request.header.Origin}"
|
||||
Access-Control-Allow-Credentials true
|
||||
Access-Control-Allow-Methods *
|
||||
Access-Control-Allow-Headers *
|
||||
Vary Origin
|
||||
defer
|
||||
}
|
||||
# reverse_proxy shuwashuwa:8848 {
|
||||
# header_down -Access-Control-Allow-Origin
|
||||
# }
|
||||
file_server browse {
|
||||
# browse template
|
||||
# hide .*
|
||||
|
|
|
@ -151,7 +151,7 @@ in {
|
|||
hardware.framework.amd-7040.preventWakeOnAC = true;
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
|
Loading…
Reference in a new issue