680 Commits

Author SHA1 Message Date
nachoparker
ee01a706b1 ncp-web: tweak password suggestions
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-11-02 17:11:47 -06:00
Thomas Heller
a8285767d7
Clarify documentation of nc-previews-auto command (#1370) 2021-10-29 16:44:01 -06:00
nachoparker
7b73d1db5f add nc-encrypt
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-27 15:46:13 -06:00
nachoparker
532a6a8bb6 letsencrypt: sync ncp and nc cert paths
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-27 15:18:57 -06:00
nachoparker
ccf957fcde small trusted domains refactor
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-27 15:18:55 -06:00
nachoparker
9ff21bb3fb nc-backup-auto: ncc path
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-23 09:36:36 -06:00
nachoparker
3f57513325 ncp-web: add Russion translations
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-21 13:26:24 -06:00
nachoparker
36c1f465fc letsencrypt: disable also ncp web certs if OFF
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-21 12:47:38 -06:00
nachoparker
78a88ebb47 ncp-web: remove dir indicator on nc-backup
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-18 08:34:43 -06:00
nachoparker
0a866caca4 save and restore maintenance mode status in ncp-apps
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-18 08:01:48 -06:00
nachoparker
cf4cfd81a8 also save hostname in trusted domains
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-15 09:01:20 -06:00
nachoparker
c75db63260 letsencrypt: take into account the possibility of the ncp-nextcloud folder being used
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-14 13:48:40 -06:00
nachoparker
35a3a54845 letsencrypt: favor most recent cert if there are many
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-14 11:08:05 -06:00
nachoparker
9bddfad805 fix HPB with dynamic IP
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-14 10:24:16 -06:00
nachoparker
4e790e4e9e letsencrypt: fix template generation
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-14 10:24:16 -06:00
Tobias Knöppler
de104a5da8 Make templating safer and more verbose (#1343)
* letsencrypt: fix active status check

Signed-off-by: nachoparker <nacho@ownyourbits.com>

* letsencrypt: take into account duplicate domains ending in -0001

Signed-off-by: nachoparker <nacho@ownyourbits.com>

* letsencrypt: fix renewal with httpsonly enabled

Signed-off-by: nachoparker <nacho@ownyourbits.com>

* fix inverted template logic for docker

Signed-off-by: nachoparker <nacho@ownyourbits.com>

* library.sh: Move templating to separate function

- Backup old file before templating (and restore on failure)
- Use stderr in the template for debug/info output

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* library.sh: Fix syntax error

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* library.sh: Only fallback to default config if explicitly allowed

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* letsencrypt.sh: Set cert-name

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* nextcloud.conf.sh: Use certificate named ncp-nextcloud if available

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* letsencrypt.sh: Support multiple, comma separated domains in field "OTHER_DOMAIN"

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* nextcloud.conf.sh: Fix path resolution for certificates

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* letsencrypt.sh: Improve warning about max trusted domains reached

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* letsencrypt.sh: Fix max trusted domains check

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* letsencrypt.sh: Fix splitting of domain string by comma

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* letsencrypt.sh: Fix splitting of domain string to array

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* adjustments for docker/lxc

Signed-off-by: nachoparker <nacho@ownyourbits.com>

Co-authored-by: nachoparker <nacho@ownyourbits.com>
2021-10-07 13:29:00 -06:00
nachoparker
9e276600e6 build: add LXD/docker automatic testing
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-06 12:08:28 -06:00
nachoparker
31f20bcb25 build: close mysql inside the configure step
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-05 12:44:47 -06:00
nachoparker
26edf1f7b0 build: add LXC/LXD support
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-30 22:48:19 -06:00
nachoparker
b067844550 add get_ip function
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-27 18:27:44 -06:00
nachoparker
4039da90a9 letsencrypt: take into account duplicate domains ending in -0001
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-22 09:18:45 -06:00
nachoparker
2b51476630 fix inverted template logic for docker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-22 00:48:57 -06:00
nachoparker
1046a2413b letsencrypt: fix active status check
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-22 00:48:56 -06:00
nachoparker
f3e3b01ab5 letsencrypt: improve active status check
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-20 09:59:35 -06:00
nachoparker
c10d4bd8fb upgrade to NC21.0.4
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-12 16:55:46 -06:00
nachoparker
3bf746bad0 raspi: allow oldstable origins
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-08-25 14:59:04 -06:00
nachoparker
956eea4624 nc-restore: try to detect old datadir in dataless restoration
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-08-16 20:41:14 -06:00
Tobias K
4f29d94a02
nextcloud.conf.sh: Prevent apache config test output to end up in generated template
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-08-16 21:26:08 +02:00
nachoparker
6e2dca5d52 upgrade to NC20.0.12
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-08-09 17:37:34 -06:00
nachoparker
b8c14093ad letsencrypt: ability to disable it and roll back to self-signed certificates
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-08-09 17:25:55 -06:00
nachoparker
5a05b8990f nextcloud: remove beta option
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-08-09 17:16:38 -06:00
rababerladuseladim
6aefb5de1c remove unused USER variable from ncp apps nc-notify-updates and nc-update-nc-apps-auto (#1307)
* remove unused USER variable

Signed-off-by: Henning Schiebenhoefer <henning.schiebenhoefer@posteo.de>

* remove unused USER variable

Signed-off-by: Henning Schiebenhoefer <henning.schiebenhoefer@posteo.de>
2021-08-09 17:16:38 -06:00
Tobias K
e49203249b nextcloud.conf.sh: Allow any user name for metrics endpoint and fix docker build
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

nextcloud.conf.sh: Fix apps overwriting each other during templating

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

nextcloud.conf.sh: Make --default mode failsafe (don't expect apps to be installed)

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

nextcloud.conf.sh: Allow any user name for metrics endpoint

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

nextcloudpi/Dockerfile: Copy the templates directory to the container

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

lamp/Dockerfile: Copy the templates directory to the container

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

install.sh: Ensure templates are available before executing nc-nextcloud.sh

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-08-09 17:16:35 -06:00
Tobias Knöppler
b8a990e264
Add ncp-app for prometheus (system) metrics
* metrics.{sh,cfg}: Implement ncp-app for prometheus (system) metrics

letsencrypts.sh, nc-nextcloud.sh, nextcloud.conf.sh: Introduce templating/generator concept to allow multiple ncp apps to edit the same file without conflicts

library.sh: Add convenience function find_app_param

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* letsencrypt.sh: Remove commented code

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* metrics.cfg: Deactivate by default

- Add title, description and remove TODO entries

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* metrics.sh: Restart apache after enabling proxy_http

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* update.sh: Update ncp-templates directory during updates

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* update.sh: Copy ncp-templates directory, not just its content

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* metrics.sh,update.sh: Disable metrics in docker for now

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* metrics.sh: Disable prometheus-node-exporter via systemctl

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* metrics.sh: Move apache mod configuration to updates

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* metrics.cfg: Remove invalid parameter type

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* metrics.sh: Create /etc/default/prometheus-node-exporter via heredoc

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* nextcloud.conf.sh: Prevent template parsing error if metrics.sh is disabled (i.e. on docker)

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* metrics.cfg: Add info directing users to my preconfigured ncp dashboard

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* Various fixes

- metrics.sh: Fix is_active function always returning 1
- metrics.sh: Fix apache2 reload potentially interrupting web ui
- nc-nextcloud.sh: exit if nextcloud.conf templating fails
- various readability and code style improvements

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* letsencrypt.sh: Use consistent return codes in tmpl_letsencrypt_domain

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* nextcloud.conf.sh: Remove obsolete return code escape

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* nextcloud.conf.sh: Ensure that the snakeoil self-signed cert exists before enabling it

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* updates/1.36.4.sh: Reload apache in the background instead of restarting it blockingly

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-08-02 15:12:56 -06:00
nachoparker
effdd6cdb3 upgrade to NC20.0.11
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-07-25 07:23:48 -06:00
Huizerd
7aef967f09 Namecheap dynamic DNS client
Signed-off-by: Huizerd <15855769+Huizerd@users.noreply.github.com>
2021-05-12 21:49:42 -06:00
nachoparker
be30663c7a upgrade to NC20.0.8
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-02-27 08:09:03 -07:00
nachoparker
afa39fb6e7 ncp-config: shorten descriptions
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-01-18 22:08:47 -07:00
nachoparker
20bd14fe7b wizard: fix letsencrypt empty email
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-01-17 20:02:26 -07:00
nachoparker
ec428a288f upgrade to NC20.0.4
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-01-01 13:56:35 -07:00
nachoparker
82d00c8a61 ncp-config: fix empty values
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-01-01 13:56:09 -07:00
nachoparker
ffd0b449e1 upgrade to NC20.0.3
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-12-10 09:28:48 -07:00
nachoparker
7afdc0fe8d upgrade to NC20.0.2
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-11-27 14:54:46 -07:00
nachoparker
ab9184cadd upgrade to NC19.0.4
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-10-19 19:00:37 -06:00
nachoparker
f00fe2105e upgrade to NC19.0.2
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-09-19 14:11:24 -06:00
Daadii
82baebf070 ncp-web: added a lot of german locales 2020-09-19 14:07:38 -06:00
nachoparker
3cf269a305 upgrade to NC19.0.2
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-08-29 09:05:40 -06:00
nachoparker
99cfe9bc87 upgrade to NC18.0.7
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-07-23 16:58:40 -06:00
nachoparker
3c96d2eed3 upgrade to NC18.0.6
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-07-05 20:25:53 -06:00
Leandro Lucarella
337ffeb1c5 ncp-autoupdate: cronjob write to the log only (#1144)
Cronjobs should not have any output, unless the cronjob fails, otherwise
an e-mail notification is sent with the output. This cronjob in
particular is also reporting results via Nextcloud notification, so
having an e-mail with logs saying the same as the notification is not
particularly useful. Instead we just redirect all output to the
/var/log/ncp.log so the user can debug in case of problems and doesn't
receive spurious e-mails when all works fine.

Signed-off-by: Leandro Lucarella <luca@llucax.com>
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-06-13 09:22:44 -06:00