set config cp

This commit is contained in:
Didier Slof 2023-02-01 12:26:29 +01:00
parent e767bc11b8
commit aad0489dbf
Signed by: didier
GPG key ID: 01E71F18AA4398E5
2 changed files with 4 additions and 7 deletions

View file

@ -11,9 +11,6 @@ server {
set_real_ip_from 10.0.0.0/8;
real_ip_header X-Forwarded-For;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
# CryptPad serves static assets over these two domains.
# `main_domain` is what users will enter in their address bar.
# Privileged computation such as key management is handled in this scope
@ -33,8 +30,8 @@ server {
#
# An example is given below which can be uncommented if you want to block
# remote sites from including content from your server
set $allowed_origins "*";
# set $allowed_origins "https://${sandbox_domain}";
# set $allowed_origins "*";
set $allowed_origins "https://${sandbox_domain}";
# CryptPad's dynamic content (websocket traffic and encrypted blobs)
# can be served over separate domains. Using dedicated domains (or subdomains)

View file

@ -46,7 +46,7 @@ module.exports = {
* cryptpad/docs/example.nginx.conf (see the $main_domain variable)
*
*/
httpUnsafeOrigin: 'http://localhost:3000',
httpUnsafeOrigin: 'https://pad.ixvd.net',
/* httpSafeOrigin is the URL that is used for the 'sandbox' described above.
* If you're testing or developing with CryptPad on your local machine then
@ -67,7 +67,7 @@ module.exports = {
*
* CUSTOMIZE AND UNCOMMENT THIS FOR PRODUCTION INSTALLATIONS.
*/
httpSafeOrigin: "https://pad.ixvd.net",
httpSafeOrigin: "https://pad.sandbox.neo.ixvd.net",
/* httpAddress specifies the address on which the nodejs server
* should be accessible. By default it will listen on 127.0.0.1