reduce refresh time to 5min in webserver mode
Some checks failed
Docker Multi-Architecture Build / build-docker (push) Has been cancelled

This commit is contained in:
Émilien (perso) 2024-11-18 22:14:06 +01:00 committed by GitHub
parent 5ddf4bd337
commit 0609262d8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ Retrieve potoken using Chromium runned by nodriver, serve it on a json endpoint
parser = argparse.ArgumentParser(description=description, formatter_class=argparse.RawDescriptionHelpFormatter) parser = argparse.ArgumentParser(description=description, formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('-o', '--oneshot', action='store_true', default=False, parser.add_argument('-o', '--oneshot', action='store_true', default=False,
help='Do not start server. Generate token once, print it and exit') help='Do not start server. Generate token once, print it and exit')
parser.add_argument('--update-interval', '-u', type=int, default=3600, parser.add_argument('--update-interval', '-u', type=int, default=300,
help='How ofthen new token is generated, in seconds (default: %(default)s)') help='How ofthen new token is generated, in seconds (default: %(default)s)')
parser.add_argument('--port', '-p', type=int, default=8080, parser.add_argument('--port', '-p', type=int, default=8080,
help='Port webserver is listening on (default: %(default)s)') help='Port webserver is listening on (default: %(default)s)')