Commit graph

71 commits

Author SHA1 Message Date
Alexandre Aubin
ba2fc82246 Merge branch 'enh-config-panel-file' into enh-dns-autoconf 2021-09-12 16:04:08 +02:00
Alexandre Aubin
4ee759855a Implement global settings for https redirect 2021-08-31 21:42:27 +02:00
Alexandre Aubin
7e048b85b9 Misc fixes 2021-08-28 21:32:11 +02:00
Alexandre Aubin
bcb803c0c3 Add new setting to enable experimental security features 2021-08-18 22:10:25 +02:00
Alexandre Aubin
0d2fefacec
Merge pull request #1271 from Tagadda/enh-webadmin-allowlist
[enh] Add settings to block webadmin from outside
2021-08-08 19:11:58 +02:00
Tagada
f3166b71b4 [enh] Add settings to block webadmin from outside 2021-07-12 18:32:12 +02:00
Kay0u
96e67ef145
monkey patch get_setting_description 2021-07-06 12:14:46 +02:00
yunohost-bot
66f2613518 [CI] Format code 2021-04-17 00:31:06 +00:00
Alexandre Aubin
95999feafb Also reload firewall when changing ssh port 2021-04-15 12:39:33 +02:00
Alexandre Aubin
37c0825eed Also propagate ssh port on fail2ban config 2021-04-15 12:22:21 +02:00
Kay0u
ee31969be7
add ssh port setting 2021-04-12 18:07:36 +02:00
cyxae
30421954a4
Add an option to disable the 'YunoHost' panel overlay in web apps (#1071)
* Add an option to disable the 'YunoHost' panel overlay in apps

* set default value for overlay as true

* Add a hook to auto-update nginx conf + fix deprecated 'service regen-conf'

* Change name of setting to ssowat.panel_overlay.enabled

* [fix] Duplicate function

* Quote var, just in case the var is empty for some reason

Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-04-02 02:21:29 +02:00
Alexandre Aubin
01ccab5252 Add semantic of YunohostValidationError for all exceptions which are related to validating stuff 2021-03-11 01:39:52 +01:00
Laurent Peuch
97f26015c6 [fix] kill all bare exceptions 2021-02-02 14:40:29 +01:00
yunohost-bot
c4439110e1 [CI] Format code 2021-02-02 03:37:40 +00:00
Alexandre Aubin
9c11fd58e2 service_regen_conf is deprecated in factor of regen_conf 2021-01-22 03:37:29 +01:00
Alexandre Aubin
8e30768598 2to3-2.7 ./src/yunohost/{,data_migrations/,utils/,tests/}*.py data/hooks/diagnosis/*.py -w -x dict -x print --nobackups --no-diffs 2020-12-30 21:53:43 +01:00
Alexandre Aubin
d77d5afb2c When encountering unknown setting, also save the regular setting so we don't re-encounter the unknown settings everytime 2020-12-28 20:05:51 +01:00
Alexandre Aubin
0ad014ad1f
Merge branch 'dev' into enh-relay-smtp 2020-09-10 17:50:10 +02:00
Alexandre Aubin
49f6394233 autopep8 --in-place -a -a -a --ignore E402,E501,E722 -r src/yunohost/{__init__.py,certificate.py,diagnosis.py,domain.py,dyndns.py,firewall.py,hook.py,log.py,regenconf.py,service.py,settings.py,ssh.py,tools.py} 2020-09-03 17:37:08 +02:00
Alexandre Aubin
083776bc4a Get rid of example settings, only keep them for tests 2020-09-02 16:30:29 +02:00
Alexandre Aubin
839a7b9a47 Add a global setting to still compress tar archives 2020-08-31 19:08:43 +02:00
ljf
ff0a2192b9 [enh] Automatic regenconf after editing smtp settings 2020-05-04 14:45:47 +02:00
ljf
64066f85b0 [enh] Allow admin to specify an smtp relay 2020-05-04 14:45:47 +02:00
ljf
40141c84f3 [enh] Auto update postfix on smtp.allow_ipv6 change 2020-04-19 03:55:50 +02:00
ljf
e6f0091f59 [fix] Rename ipv6 mail settings + desc 2020-04-19 03:45:59 +02:00
ljf
4686673bb5 [enh] Be able to disable ipv6 for smtp 2020-04-19 02:30:23 +02:00
Josué Tille
97f50e396c Fix settings boolean value management 2020-03-24 04:13:26 +01:00
Luke Murphy
74a5979e91
Fix typo in copy/pasta'd function 2019-11-10 21:01:17 +07:00
Luke Murphy
4f583aadc2
Remove comment
This isn't an issue AFAICT, since the hooks manage this themselves
already. Hence, I assume this is an old comment and out of date.
2019-11-10 21:01:16 +07:00
Luke Murphy
25f270298f
Add is_boolean and use when calling settings_set
The CLI always passes the value as a string so we need to manage this
type casting step by hand.
2019-11-10 21:01:03 +07:00
Luke Murphy
1cb6080778
Fix typos 2019-11-10 20:57:46 +07:00
Luke Murphy
83b4be5345
Add setting to configure pop3 for dovecot 2019-11-10 20:57:46 +07:00
Alexandre Aubin
95fdfb3275
Unit test was broken, gotta foce this to be a str otherwise string formatting fails later 2019-05-17 15:48:51 +02:00
Romuald du Song
15ac51098d propose a setting to remove support for TLSv1 and TLSv1.1 2019-03-28 22:03:25 +01:00
Alexandre Aubin
dbafa47f88
Merge branch 'stretch-unstable' into featureCipherStrategy 2019-03-23 18:19:04 +01:00
Alexandre Aubin
fee79820e0 Rename nginx and ssh compatibility setting for consistency 2019-03-22 16:15:11 +01:00
Alexandre Aubin
847cecaf7f [fix] Fix error message for bad choice for setting enums 2019-03-22 16:12:32 +01:00
Romuald du Song
e7d322b68c don't enforce services reconfiguration generation unless you don't want to keep user meodifications 2019-02-25 18:29:46 +01:00
Alexandre Aubin
a1d85b6350
Merge branch 'stretch-unstable' into featureCipherStrategy 2019-02-25 00:56:20 +01:00
Romuald du Song
ac250e2549 fix service_regen_conf syntax 2019-02-21 21:15:25 +01:00
Romuald du Song
9aa6cb6ac5 add hook to reconfigure nginx or ssh on settings change 2019-02-21 20:46:18 +01:00
Alexandre Aubin
c029ccb7ad Also feed the setting name when calling setting hook 2019-02-21 15:07:06 +01:00
Alexandre Aubin
9a7dc6d43e Be able to define hook to trigger after changing a setting value 2019-02-19 16:40:47 +01:00
Romuald du Song
375b7d53b1 fix enum syntax 2019-02-14 23:00:52 +01:00
Romuald du Song
a899102efc don't share setting for nginx and ssh 2019-02-14 22:57:24 +01:00
Romuald du Song
e8eff87297 switch to enum type to store cipher policy setting 2019-02-14 22:49:13 +01:00
Romuald du Song
f084de5a69 declare setting security.ciphers.compatibility 2019-02-09 23:30:40 +01:00
Alexandre Aubin
115b557b67 autopep8 + a few manual tweaks 2018-12-13 18:52:26 +00:00
Alexandre Aubin
18c33db8b6 MoulinetteError -> YunohostError 2018-12-12 19:07:25 +00:00