mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 11:51:57 +00:00
add webroot flag to certbot renewal
This commit is contained in:
@@ -51,6 +51,6 @@ renewSslCerts :: ReaderT RegistryCtx IO ()
|
|||||||
renewSslCerts = do
|
renewSslCerts = do
|
||||||
domain <- asks $ registryHostname . appSettings
|
domain <- asks $ registryHostname . appSettings
|
||||||
(cert, key) <- asks $ (sslCertLocation &&& sslKeyLocation) . appSettings
|
(cert, key) <- asks $ (sslCertLocation &&& sslKeyLocation) . appSettings
|
||||||
void . liftIO $ system [i|certbot renew|]
|
void . liftIO $ system [i|certbot renew --webroot|]
|
||||||
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/fullchain.pem #{cert}|]
|
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/fullchain.pem #{cert}|]
|
||||||
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/privkey.pem #{key}|]
|
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/privkey.pem #{key}|]
|
||||||
|
|||||||
Reference in New Issue
Block a user