forked from deso-protocol/identity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
43 lines (36 loc) · 1 KB
/
Caddyfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Global caddy config options must be first
{
admin off
auto_https off
}
# Bind to port 82
:82
# Serve static files
file_server
# Fallback to index.html for everything but assets
@html {
not path *.js *.css *.png *.svg
file index.html
}
handle_errors {
header Cache-Control no-store
}
rewrite @html {http.matchers.file.relative}
# Don't cache index.html and set CSP
header @html Cache-Control no-store
header @html Content-Security-Policy "
default-src 'self';
connect-src
http://localhost:17001/get-users-stateless
https://api.bitpop.dev/get-users-stateless
https://api.bitclout.com/get-users-stateless
https://api.bitclout.green/get-users-stateless
https://api.bitclout.blue/get-users-stateless;
img-src 'self' data:;
style-src 'self' 'unsafe-inline'
https://fonts.googleapis.com
https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css;
font-src 'self'
https://fonts.googleapis.com
https://fonts.gstatic.com
https://ka-f.fontawesome.com;"