From dbd12a5c7bad7cbe3467adef22fe9abf8ac3cc78 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 8 Feb 2023 14:32:47 -0300 Subject: [PATCH] Fix CORS for htmx --- README.md | 6 ++++++ nginx.conf | 1 + 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index c3455d2..aafc80c 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,9 @@ Details at [the blog post](http://ralsina.me/weblog/posts/the-cheapest-server.ht When adding a new hostname, remember to create a cert for it using `flyctl certs create hostname` + +Every 90 days the tailscale auth key will expire and you need to set a new one as +a secret. + +* Create the new one at https://login.tailscale.com/admin/settings/keys +* Configure it using flyctl secrets set TAILSCALE_AUTHKEY={{PASTEKEYHERE}} diff --git a/nginx.conf b/nginx.conf index 7220b9a..a3534b7 100644 --- a/nginx.conf +++ b/nginx.conf @@ -39,6 +39,7 @@ server { server_name faas.ralsina.me; add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Access-Control-Allow-Headers' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; location / {