diff options
author | guillaume <guillaume.cassou@supinfo.com> | 2018-07-24 18:09:30 +0200 |
---|---|---|
committer | guillaume <guillaume.cassou@supinfo.com> | 2018-07-24 18:09:30 +0200 |
commit | 6173a7338135c87321be909482ff356d32977de6 (patch) | |
tree | 1de96a5b145463651d335cd17e30a8d62ce6e6b5 /snap-src | |
parent | dafe1e39a53543a20505705185c84053ae0a1918 (diff) | |
download | wekan-6173a7338135c87321be909482ff356d32977de6.tar.gz wekan-6173a7338135c87321be909482ff356d32977de6.tar.bz2 wekan-6173a7338135c87321be909482ff356d32977de6.zip |
enable/disable api with env var
Diffstat (limited to 'snap-src')
-rwxr-xr-x | snap-src/bin/config | 6 | ||||
-rwxr-xr-x | snap-src/bin/wekan-help | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/snap-src/bin/config b/snap-src/bin/config index 813c3d3f..9feada7b 100755 --- a/snap-src/bin/config +++ b/snap-src/bin/config @@ -3,7 +3,7 @@ # All supported keys are defined here together with descriptions and default values # list of supported keys -keys="MONGODB_BIND_UNIX_SOCKET MONGODB_BIND_IP MONGODB_PORT MAIL_URL MAIL_FROM ROOT_URL PORT DISABLE_MONGODB CADDY_ENABLED CADDY_BIND_PORT" +keys="MONGODB_BIND_UNIX_SOCKET MONGODB_BIND_IP MONGODB_PORT MAIL_URL MAIL_FROM ROOT_URL PORT DISABLE_MONGODB CADDY_ENABLED CADDY_BIND_PORT WITH_API" # default values DESCRIPTION_MONGODB_BIND_UNIX_SOCKET="mongodb binding unix socket:\n"\ @@ -47,3 +47,7 @@ KEY_CADDY_ENABLED="caddy-enabled" DESCRIPTION_CADDY_BIND_PORT="Port on which caddy will expect proxy, value set here will be set in $SNAP_COMMON/Caddyfile" DEFAULT_CADDY_BIND_PORT="3001" KEY_CADDY_BIND_PORT="caddy-bind-port" + +DESCRIPTION_WITH_API="Enable/disable the api of wekan" +DEFAULT_WITH_API="false" +KEY_WITH_API="with-api" diff --git a/snap-src/bin/wekan-help b/snap-src/bin/wekan-help index ee565500..5c3f9b31 100755 --- a/snap-src/bin/wekan-help +++ b/snap-src/bin/wekan-help @@ -28,6 +28,10 @@ echo -e "\t\t-connect mongodb-plug with slot from snap providing mongodb" echo -e "\t\t-disable mongodb in $SNAP_NAME by calling: $ snap set $SNAP_NAME set disable-mongodb='true'" echo -e "\t\t-set mongodb-bind-unix-socket to point to serving mongodb. Use relative path inside shared directory, e.g run/mongodb-27017.sock" echo -e "\n" +echo -e "To enable the API of wekan:" +echo -e "\t$ snap set $SNAP_NAME WITH_API='true'" +echo -e "\t-Disable the API:" +echo -e "\t$ snap set $SNAP_NAME WITH_API='false'" # parse config file for supported settings keys echo -e "wekan supports settings keys" echo -e "values can be changed by calling\n$ snap set $SNAP_NAME <key name>='<key value>'" |