Commit graph

27 commits

Author SHA1 Message Date
myvesta
e1d962e60b
Introducing UPDATE_SSL_SCRIPT2 callback 2021-04-13 10:50:53 +02:00
myvesta
27e892c6e3
Reset UPDATE_SSL_SCRIPT 2020-06-11 10:21:14 +02:00
Serghey Rodin
180d910131 inverted trigger condition 2019-03-14 14:58:19 +02:00
Serghey Rodin
8edf965375 backend: user domain vesta ssl certificate support 2019-03-14 00:44:06 +02:00
dpeca
d15e103704
Allow admins to run custom script after SSL is put to any domain
Useful if you have separated SSLs for each IP address.

If admin add to vesta.conf this:
UPDATE_SSL_SCRIPT='/usr/local/bin/update_ssl_script.sh'
that script will be called after each domain get new SSL or renew old SSL.

Then admin can write custom script that will, for example, copy new SSL to some file that is needed for dovecot or exim, for example...
Passed parameters are $user and $domain ($1 and $2), so custom script can check what domain got new SSL, and then to run custom task...
2019-02-14 18:29:56 +01:00
dpeca
b2e75d89b7
Making Vesta able to update hostname SSL automatically
This feature will allow VestaCP to automatically update system SSL when you add SSL to your domain (that is also hostname) through VestaCP panel.
For example, if your server hostname is my.server.net and you add SSL to that domain (as you usually do via VestaCP panel), that SSL will be also installed to Vesta nginx (on 8083 port), to Exim and to devocot.
This will work if you use LetsEncrypt, and it will also automatically apply renewed certificate when Vesta renew letsencrypt certificate.

--- IMPORTANT ---
This feature will work only if you have
UPDATE_HOSTNAME_SSL='yes'
in /usr/local/vesta/conf/vesta.conf

Why?
Because I'm not sure that Serghey want to use this mechanism for installing system SSL.
So, this way it's only OPTIONAL feature, not enabled by default.
On all servers nothing will happen.

If Sergey likes this idea, he will easily make it enabled by default.

Cheers.
2018-04-07 00:38:55 +02:00
System Void
5500f3c2bd Merge pull request #972 from mslepko/master
Added additional domain parameter formatting when adding SSL for domain + Added missing Polish translations
2017-01-31 08:14:57 +00:00
Serghey Rodin
e5950d516d Code refactoring: domain_idn + new restart routine 2017-01-11 16:52:11 +02:00
Michal Slepko
3fa2133a46 Added additional domain parameter formatting when adding SSL for domain 2016-12-02 21:06:08 +00:00
Serghey Rodin
872cd3ac45 web function refactoring 2016-06-09 17:05:41 +03:00
RhysIT
9189ca9488 Corrected spelling mistakes 2015-11-06 17:38:58 +02:00
Serghey Rodin
91a804c1c8 check_result function 2015-10-28 16:34:41 +02:00
Serghey Rodin
567ce7e832 php-fpm support 2015-04-16 02:43:31 +03:00
Serghey Rodin
4614df59a7 E_RESTART should be a variable 2014-02-19 23:12:23 +02:00
Serghey Rodin
477934825c restart error handler 2014-02-06 11:11:45 +02:00
Serghey Rodin
53d58e4201 Check if ssl support in enabled 2013-12-05 14:44:47 +02:00
Serghey Rodin
ed54f83795 from now vesta.conf can override any func variable 2013-10-09 00:50:08 +03:00
Serghey Rodin
10f7097c48 implemented scheduled restart 2013-06-01 14:25:44 +03:00
Serghey Rodin
7ebd96d92d updated syntax for is_system_enabled() 2013-05-29 13:16:09 +03:00
Serghey Rodin
fd4e68bb8c new improved template scheme 2013-05-10 11:04:40 +03:00
Serghey Rodin
cd69b7bcdf improving template structure 2013-04-03 23:18:51 +03:00
Serghey Rodin
02b549f942 Enabling SNI support 2013-04-01 16:01:15 +03:00
Serghey Rodin
138ef6c7b0 support for NATed networks 2013-02-05 22:58:40 +02:00
Serghey Rodin
88d4c0e05d additional CR in the middle of pem 2013-01-31 14:30:05 +02:00
Serghey Rodin
b8b28120fd dox2unix fix after merge 2013-01-19 23:07:26 +02:00
ZonD Eighty
2b16d9bd83 Merge changes from upstream
I'm a little angry
2012-12-28 23:31:02 +04:00
Serghey Rodin
b6b7eacadb replaced underscore with dash in api syscalls 2012-11-09 18:26:32 +02:00
Renamed from bin/v_add_web_domain_ssl (Browse further)