mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
fix
This commit is contained in:
parent
4f7aac995e
commit
d647a6cd31
2 changed files with 16 additions and 9 deletions
|
@ -1,9 +1,4 @@
|
||||||
set $main_domain "__DOMAIN__";
|
server_name __DOMAIN__ __SANDBOXDOMAIN__;
|
||||||
set $sandbox_domain "__SANDBOXDOMAIN__";
|
|
||||||
set $allowed_origins "https://${sandbox_domain}";
|
|
||||||
set $api_domain "__DOMAIN__";
|
|
||||||
set $files_domain "__DOMAIN__";
|
|
||||||
ssl_ecdh_curve secp384r1;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:__PORT__;
|
proxy_pass http://127.0.0.1:__PORT__;
|
||||||
|
@ -16,3 +11,14 @@ location / {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection upgrade;
|
proxy_set_header Connection upgrade;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ^~ /cryptpad_websocket {
|
||||||
|
proxy_pass http://127.0.0.1:__SOCKET_PORT__;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection upgrade;
|
||||||
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "CryptPad"
|
||||||
description.en = "Collaborative office suite that is end-to-end encrypted"
|
description.en = "Collaborative office suite that is end-to-end encrypted"
|
||||||
description.fr = "Suite bureautique collaborative chiffrée de bout en bout"
|
description.fr = "Suite bureautique collaborative chiffrée de bout en bout"
|
||||||
|
|
||||||
version = "5.7.0~ynh1"
|
version = "2024.3.1~ynh1"
|
||||||
|
|
||||||
maintainers = ["ddataa"]
|
maintainers = ["ddataa"]
|
||||||
|
|
||||||
|
@ -48,12 +48,13 @@ ram.runtime = "50M"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://github.com/xwiki-labs/cryptpad/archive/refs/tags/5.7.0.tar.gz"
|
url = "https://github.com/cryptpad/cryptpad/archive/refs/tags/2024.3.1.tar.gz"
|
||||||
sha256 = "87cf091f2d0f26bc4d2df53460bade79e3b0d1804dfe6ef1e592ceb2654cd21f"
|
sha256 = "9149c55f09b245cde2d295efe1f373c394db7a7652ba32432d05dc11c2ddb697"
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
|
|
||||||
[resources.ports]
|
[resources.ports]
|
||||||
main.default = 3000
|
main.default = 3000
|
||||||
|
socket.default = 3003
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue