From 8984f2991a827e05066ff6971e896e1dfa483d70 Mon Sep 17 00:00:00 2001 From: "Lucian I. Last" Date: Fri, 4 Oct 2024 09:42:09 +0200 Subject: [PATCH] move ownership of domain nakama.acc to app.acc --- app/Caddyfile-acc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/Caddyfile-acc b/app/Caddyfile-acc index b5dfdd134..8b41875a7 100644 --- a/app/Caddyfile-acc +++ b/app/Caddyfile-acc @@ -2,7 +2,7 @@ header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" } :80 { - import hsts + import hsts header X-Robots-Tag noindex handle_path /api/* { @@ -23,4 +23,16 @@ encode zstd gzip try_files {path} /index.html } +} + +:81 { + @options { + method OPTIONS + } + respond @options 200 + header Access-Control-Allow-Origin "app.acc.clothingloop.org" + header Access-Control-Allow-Methods "*" + header Access-Control-Allow-Headers "Content-Type, Origin, Authorization, X-Requested-With, Accept" + + reverse_proxy acc_nakama:7350 } \ No newline at end of file