1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/owncloud_ynh.git synced 2024-09-03 19:56:25 +02:00

Merge pull request #14 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-11-13 14:20:22 +01:00 committed by GitHub
commit 52731f1e04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 24 deletions

View file

@ -1,10 +1,7 @@
OCIS_URL=https://__DOMAIN__
PROXY_HTTP_ADDR=127.0.0.1:__PORT__
PROXY_TLS=true
OCIS_INSECURE=false
#OCIS_HTTP_TLS_CERTIFICATE="/etc/yunohost/certs/__DOMAIN__/crt.pem"
#OCIS_HTTP_TLS_KEY="/etc/yunohost/certs/__DOMAIN__/key.pem"
OCIS_INSECURE=true
OCIS_LOG_LEVEL=warn
@ -13,17 +10,15 @@ OCIS_FORCE_CONFIG_OVERWRITE=true
OCIS_CONFIG_DIR=__INSTALL_DIR__
OCIS_BASE_DATA_PATH=__DATA_DIR__
IDM_ADMIN_PASSWORD=__PASSWORD__
#IDM_ADMIN_PASSWORD=__PASSWORD__
OCIS_DEFAULT_LANGUAGE=__LANGUAGE__
#AUTH_BASIC_AUTH_MANAGER=ldap
#OCIS_LDAP_URI=ldap://localhost:9235
#OCIS_LDAP_USER_BASE_DN="ou=users,dc=yunohost,dc=org"
#OCIS_LDAP_GROUP_BASE_DN="ou=groups,dc=yunohost,dc=org"
#OCIS_LDAP_USER_FILTER=(&(|(objectclass=posixAccount))(uid=%uid)(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))
#OCIS_LDAP_LOGIN_ATTRIBUTES="uid"
#OCIS_LDAP_USER_SCHEMA_MAIL="mail"
#OCIS_LDAP_GROUP_SCHEMA_DISPLAYNAME="cn"
#OCIS_LDAP_URI=ldap://127.0.0.1:389
#OCIS_LDAP_USER_BASE_DN='ou=users,dc=yunohost,dc=org'
#OCIS_LDAP_GROUP_BASE_DN='ou=groups,dc=yunohost,dc=org'
#OCIS_LDAP_USER_FILTER='(&(|(objectclass=posixAccount))(uid=%uid)(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))'
#OCIS_LDAP_LOGIN_ATTRIBUTES=uid
#OCIS_LDAP_USER_SCHEMA_MAIL=mail
#OCIS_LDAP_GROUP_SCHEMA_DISPLAYNAME=cn

View file

@ -2,16 +2,13 @@
location __PATH__/ {
proxy_pass https://127.0.0.1:__PORT__;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
# OIDC Tokens in headers are quite large and can exceed default limits of reverse proxies
proxy_buffers 4 256k;
proxy_buffer_size 128k;
proxy_busy_buffers_size 256k;
# Disable checking of client request body size
client_max_body_size 0;
}

View file

@ -44,9 +44,6 @@ ram.runtime = "50M"
choices = ["de", "fr", "en"]
default = "fr"
[install.admin]
type = "user"
[install.password]
type = "password"

View file

@ -17,7 +17,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$install_dir"
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
chmod +x $install_dir/ocis

View file

@ -33,7 +33,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep=".ocis ocis.env"
ynh_setup_source --dest_dir="$install_dir" --keep="ocis.env ocis.yaml"
fi
chmod -R o-rwx "$install_dir"