working on nginx integration

This commit is contained in:
2026-01-12 15:45:15 -05:00
parent 3b80a4c4b1
commit ff217b4086
5 changed files with 96 additions and 12 deletions

View File

@ -46,7 +46,8 @@ module.exports = {
* cryptpad/docs/example.nginx.conf (see the $main_domain variable)
*
*/
httpUnsafeOrigin: 'https://{{ env "CPAD_MAIN_DOMAIN" }}',
//httpUnsafeOrigin: 'https://{{ env "CPAD_MAIN_DOMAIN" }}',
httpUnsafeOrigin: 'http://localhost:3000',
/* 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 +68,8 @@ module.exports = {
*
* CUSTOMIZE AND UNCOMMENT THIS FOR PRODUCTION INSTALLATIONS.
*/
httpSafeOrigin: 'https://{{ env "CPAD_SANDBOX_DOMAIN" }}',
//httpSafeOrigin: 'https://{{ env "CPAD_SANDBOX_DOMAIN" }}',
//httpSafeOrigin: 'http://localhost:3001',
/* httpAddress specifies the address on which the nodejs server
* should be accessible. By default it will listen on 127.0.0.1