Compare commits
2 Commits
fb14c7d804
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
9830b06534
|
|||
|
effbcd15e3
|
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
.idea/
|
.idea/
|
||||||
.venv/
|
.venv/
|
||||||
.secrets/
|
.secrets/
|
||||||
|
__pycache__/
|
||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
certbot==5.4.0
|
certbot==5.4.0
|
||||||
certbot-dns-cloudflare==5.4.0
|
certbot-dns-cloudflare==5.4.0
|
||||||
pydantic==2.12.5
|
pydantic==2.12.5
|
||||||
|
email-validator==2.3.0
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
allow command `cat /path/to/files/certificate.crt` using the specified SSH key:\
|
||||||
|
`command="cat /path/to/files/certificate.crt",restrict ssh-ed25519 AAAAC3Nza...[key_content]... server-a`
|
||||||
|
|
||||||
|
make user with no permissions and put ^ in `.ssh/authorized_keys`
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
test_domain_request = {
|
||||||
|
'domain': 'example.com',
|
||||||
|
'credentials_file': '.secrets.example/certbot/cloudflare.ini',
|
||||||
|
'email': 'admin@example.com'
|
||||||
|
}
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
from schemas import DomainRequest
|
||||||
|
from pydantic import ValidationError
|
||||||
|
|
||||||
|
try:
|
||||||
|
domain_request = DomainRequest(**test_domain_request)
|
||||||
|
print("DomainRequest validation successful:", domain_request)
|
||||||
|
except ValidationError as e:
|
||||||
|
print("DomainRequest validation failed:", e)
|
||||||
|
except Exception as e:
|
||||||
|
print("An unexpected error occurred:", e)
|
||||||
|
raise e
|
||||||
Reference in New Issue
Block a user