File tree 1 file changed +16
-10
lines changed
1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 395
395
396
396
(static-site " video" )
397
397
398
- (https-server
399
- ' (" gitea.scheme.org" )
400
- " access_log /production/gitea/log/nginx/access.log;"
401
- " error_log /production/gitea/log/nginx/error.log;"
402
- (block " location /"
403
- " proxy_pass http://localhost:9030;"
404
- " proxy_set_header Host $host;"
405
- " proxy_set_header X-Real-IP $remote_addr;"
406
- " proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;"
407
- " client_max_body_size 1G;" ))
398
+ (parameterize ((content-security-policy
399
+ (alist-change (content-security-policy)
400
+ " script-src"
401
+ ' (" 'self'"
402
+ " 'unsafe-inline'"
403
+ " 'unsafe-eval'" ))))
404
+ (https-server
405
+ ' (" gitea.scheme.org" )
406
+ " access_log /production/gitea/log/nginx/access.log;"
407
+ " error_log /production/gitea/log/nginx/error.log;"
408
+ (block " location /"
409
+ " proxy_pass http://localhost:9030;"
410
+ " proxy_set_header Host $host;"
411
+ " proxy_set_header X-Real-IP $remote_addr;"
412
+ " proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;"
413
+ " client_max_body_size 1G;" )))
408
414
409
415
(block " map $go_scheme_source $go_scheme_target"
410
416
" include /production/go/nginx/map.conf;" )
You can’t perform that action at this time.
0 commit comments