mirror of
https://github.com/YunoHost-Apps/owncloud_ynh.git
synced 2024-09-03 19:56:25 +02:00
fix
This commit is contained in:
parent
0879e94fa4
commit
2644bb4728
5 changed files with 14 additions and 5 deletions
|
@ -1,15 +1,19 @@
|
||||||
TZ=__TIMEZONE__
|
TZ=__TIMEZONE__
|
||||||
|
|
||||||
OCIS_URL=https://__DOMAIN__
|
OCIS_URL=https://__DOMAIN__
|
||||||
|
|
||||||
PROXY_HTTP_ADDR=127.0.0.1:__PORT__
|
PROXY_HTTP_ADDR=127.0.0.1:__PORT__
|
||||||
|
|
||||||
PROXY_TLS=true
|
PROXY_TLS=true
|
||||||
|
|
||||||
OCIS_INSECURE=true
|
OCIS_INSECURE=true
|
||||||
|
|
||||||
OCIS_LOG_LEVEL=warn
|
OCIS_LOG_LEVEL=warn
|
||||||
|
|
||||||
OCIS_FORCE_CONFIG_OVERWRITE=true
|
OCIS_FORCE_CONFIG_OVERWRITE=true
|
||||||
|
|
||||||
OCIS_CONFIG_DIR=__INSTALL_DIR__
|
OCIS_CONFIG_DIR__DATA_DIR__/config/
|
||||||
|
|
||||||
OCIS_BASE_DATA_PATH=__DATA_DIR__
|
OCIS_BASE_DATA_PATH=__DATA_DIR__
|
||||||
|
|
||||||
OCIS_DEFAULT_LANGUAGE=__LANGUAGE__
|
OCIS_DEFAULT_LANGUAGE=__LANGUAGE__
|
||||||
|
|
2
conf/proxy.yaml
Normal file
2
conf/proxy.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
http:
|
||||||
|
addr: 127.0.0.1:__PORT__
|
|
@ -5,7 +5,7 @@ Description=ownCloud: Infinite Scale server
|
||||||
Type=simple
|
Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
EnvironmentFile=__INSTALL_DIR__/ocis.env
|
EnvironmentFile=__DATA_DIR__/config/ocis.env
|
||||||
ExecStart=__INSTALL_DIR__/ocis server
|
ExecStart=__INSTALL_DIR__/ocis server
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@ ram.runtime = "50M"
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
[resources.data_dir]
|
[resources.data_dir]
|
||||||
|
subdirs = ["config"]
|
||||||
|
|
||||||
[resources.ports]
|
[resources.ports]
|
||||||
|
|
||||||
|
|
|
@ -41,10 +41,12 @@ yunohost service add $app --description="File sharing platform" --log="/var/log/
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template=".env" --destination="$install_dir/ocis.env"
|
ynh_add_config --template="proxy.yaml" --destination="$data_dir/config/proxy.yaml"
|
||||||
|
|
||||||
chmod 400 "$install_dir/ocis.env"
|
ynh_add_config --template=".env" --destination="$data_dir/config/ocis.env"
|
||||||
chown $app:$app "$install_dir/ocis.env"
|
|
||||||
|
chmod 400 "$data_dir/config/ocis.env"
|
||||||
|
chown $app:$app "$data_dir/config/ocis.env"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL OWNCLOUD
|
# INSTALL OWNCLOUD
|
||||||
|
|
Loading…
Add table
Reference in a new issue