mirror of
https://github.com/SnowMB/traefik-certificate-extractor.git
synced 2025-09-18 21:24:31 +08:00
Compare commits
1 Commits
feature-cl
...
v1.1.1
Author | SHA1 | Date | |
---|---|---|---|
|
d94604591e |
@@ -15,4 +15,4 @@ RUN pip3 install -r requirements.txt
|
||||
COPY . /app
|
||||
|
||||
# Define entrypoint of the app
|
||||
ENTRYPOINT ["python3", "extractor.py"]
|
||||
ENTRYPOINT ["python3", "-u", "extractor.py"]
|
||||
|
@@ -3,7 +3,6 @@ import os
|
||||
import errno
|
||||
import time
|
||||
import json
|
||||
import argparse
|
||||
from base64 import b64decode
|
||||
from watchdog.observers import Observer
|
||||
from watchdog.events import FileSystemEventHandler
|
||||
@@ -76,8 +75,6 @@ class Handler(FileSystemEventHandler):
|
||||
print('Extracted certificate for: ' + c['Domains']['Main'] + (', ' + ', '.join(c['Domains']['SANs']) if c['Domains']['SANs'] else ''))
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description='Tool to extract Let\'s Encrypt certificates from Traefik\'s ACME storage file.')
|
||||
|
||||
# Determine path to watch
|
||||
path = sys.argv[1] if len(sys.argv) > 1 else './data'
|
||||
|
||||
|
Reference in New Issue
Block a user