repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
d5b9a59
parent
1fbd8f0
author
Eric Bower
date
2024-03-10 04:11:40 +0000 UTC
chore(pgs): rm cors
1 files changed,  +0, -20
M caddy/Caddyfile.pgs
+0, -20
 1@@ -9,26 +9,7 @@
 2 	}
 3 }
 4 
 5-(cors) {
 6-	@cors_preflight method OPTIONS
 7-	@cors header Origin {$APP_DOMAIN}
 8-
 9-	handle @cors_preflight {
10-		header Access-Control-Allow-Origin "*"
11-		header Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE"
12-		header Access-Control-Allow-Headers "Content-Type"
13-		header Access-Control-Max-Age "3600"
14-		respond "" 204
15-	}
16-
17-	handle @cors {
18-		header Access-Control-Allow-Origin "*"
19-		header Access-Control-Expose-Headers "Link"
20-	}
21-}
22-
23 *.{$APP_DOMAIN}, {$APP_DOMAIN} {
24-	import cors
25 	reverse_proxy web:3000
26 	tls {$APP_EMAIL} {
27 		dns cloudflare {$CF_API_TOKEN}
28@@ -113,7 +94,6 @@ monitoring.{$MONITORING_APP_DOMAIN}, prometheus.{$MONITORING_APP_DOMAIN}, grafan
29 }
30 
31 :443 {
32-	import cors
33 	reverse_proxy web:3000
34 	tls {$APP_EMAIL} {
35 		on_demand