File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,33 @@ beta.fromchat.ru {
7979 }
8080}
8181
82+ git.fromchat.ru {
83+ reverse_proxy 172.18.0.1:3000 host.docker.internal:3000 172.17.0.1:3000 {
84+ lb_policy first
85+ header_up X-Real-IP {remote_host}
86+ }
87+
88+ # Security headers
89+ header {
90+ X-XSS-Protection "1; mode=block" # Prevent XSS attacks
91+ X-Content-Type-Options "nosniff" # Prevent MIME type sniffing
92+ X-Frame-Options "DENY" # Prevent clickjacking
93+ Referrer-Policy "strict-origin-when-cross-origin"
94+ Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https: blob:; font-src 'self' data:; connect-src 'self'; frame-ancestors 'none';"
95+ Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
96+ Permissions-Policy "geolocation=(), microphone=(self), camera=(self)"
97+ }
98+
99+ rate_limit {
100+ zone global {
101+ key {remote_ip}
102+ window 1m
103+ burst 20
104+ events 500
105+ }
106+ }
107+ }
108+
82109api.getgadgets.toolbox-io.ru {
83110 reverse_proxy 95.165.0.162:8400
84111}
You can’t perform that action at this time.
0 commit comments