Skip to content

Commit 1dd1bb7

Browse files
committed
add nc-trusted-domains
1 parent 1f11d40 commit 1dd1bb7

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
lines changed

bin/ncp/CONFIG/nc-trusted-domains.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
# Manually add trusted domains in NextCloudPi
4+
#
5+
# Copyleft 2019 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
6+
# GPL licensed (see end of file) * Use at your own risk!
7+
#
8+
# More at https://ownyourbits.com/
9+
#
10+
11+
configure()
12+
{
13+
[[ "$DOMAIN1" != "" ]] && ncc config:system:set trusted_domains 20 --value="$DOMAIN1"
14+
[[ "$DOMAIN2" != "" ]] && ncc config:system:set trusted_domains 21 --value="$DOMAIN2"
15+
[[ "$DOMAIN3" != "" ]] && ncc config:system:set trusted_domains 22 --value="$DOMAIN3"
16+
}
17+
18+
install(){ :; }
19+
20+
# License
21+
#
22+
# This script is free software; you can redistribute it and/or modify it
23+
# under the terms of the GNU General Public License as published by
24+
# the Free Software Foundation; either version 2 of the License, or
25+
# (at your option) any later version.
26+
#
27+
# This script is distributed in the hope that it will be useful,
28+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30+
# GNU General Public License for more details.
31+
#
32+
# You should have received a copy of the GNU General Public License
33+
# along with this script; if not, write to the
34+
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
35+
# Boston, MA 02111-1307 USA
36+

changelog.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

2-
[v1.3.11](https://github.com/nextcloud/nextcloudpi/commit/418aa74) (2019-01-16) nc-backup: parallel compression
2+
[v1.4.0](https://github.com/nextcloud/nextcloudpi/commit/2bd3e67) (2019-01-16) add nc-trusted-domains
33

4-
[v1.3.10](https://github.com/nextcloud/nextcloudpi/commit/2419e57) (2019-01-15) nc-backup: compress in place and exclude previews folder
4+
[v1.3.11](https://github.com/nextcloud/nextcloudpi/commit/84ac075) (2019-01-16) nc-backup: parallel compression
5+
6+
[v1.3.10 ](https://github.com/nextcloud/nextcloudpi/commit/2419e57) (2019-01-15) nc-backup: compress in place and exclude previews folder
57

68
[v1.3.9 ](https://github.com/nextcloud/nextcloudpi/commit/0b8252b) (2019-01-15) build: add exfat utils for external storage
79

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"id": "nc-trusted-domains",
3+
"name": "Nc-trusted-domains",
4+
"title": "nc-trusted-domains",
5+
"description": "Manually add trusted domains",
6+
"info": "",
7+
"infotitle": "",
8+
"params": [
9+
{
10+
"id": "DOMAIN1",
11+
"name": "Trusted Domain #1",
12+
"value": "example.ownyourbits.com",
13+
"suggest": "example.ownyourbits.com"
14+
},
15+
{
16+
"id": "DOMAIN2",
17+
"name": "Trusted Domain #2",
18+
"value": "example.ownyourbits.com",
19+
"suggest": "example.ownyourbits.com"
20+
},
21+
{
22+
"id": "DOMAIN3",
23+
"name": "Trusted Domain #3",
24+
"value": "192.168.1.15",
25+
"suggest": "192.168.1.15"
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)