jvvan / reverseproxy

Reverse Proxy API powered by Nginx.
MIT License
13 stars 1 forks source link

Revoke SSL cert when proxy is deleted #4

Closed anondev-sudo closed 2 years ago

anondev-sudo commented 2 years ago

SSL cert should be revoked using certbot revoke --cert-name <DOMAIN> when you delete proxy and cert file should be removed too.

anondev-sudo commented 2 years ago

Now certificates are not removed and revoked when you delete proxy

anondev-sudo commented 2 years ago

@j122j Can you make this? Maybe just make option delete_cert that is false by default. When you add ?delete_cert=true to the request url, use certbot revoke --cert-name domain after restarting nginx (to prevent it from crashing because cert file was not found) and then delete the file of the certificate.

jvvan commented 2 years ago

In version v1.1.0, certificates are deleted by default when you delete a proxy.