Allow any origin for files.lyte.dev to let git.lyte.dev use web font

This commit is contained in:
Daniel Flanagan 2024-04-20 10:31:20 -05:00
parent 6a379b4f82
commit ed7f780338
2 changed files with 18 additions and 1 deletions

View file

@ -682,6 +682,23 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
"files.lyte.dev" = { "files.lyte.dev" = {
# TODO: customize the files.lyte.dev template? # TODO: customize the files.lyte.dev template?
extraConfig = '' 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 { file_server browse {
# browse template # browse template
# hide .* # hide .*

View file

@ -151,7 +151,7 @@ in {
hardware.framework.amd-7040.preventWakeOnAC = true; hardware.framework.amd-7040.preventWakeOnAC = true;
boot = { boot = {
kernelPackages = pkgs.linuxPackages_latest; # kernelPackages = pkgs.linuxPackages_latest;
loader = { loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;