Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can set renewal_interval? #13

Open
GhostOfSarina opened this issue May 24, 2023 · 2 comments
Open

How can set renewal_interval? #13

GhostOfSarina opened this issue May 24, 2023 · 2 comments

Comments

@GhostOfSarina
Copy link

Dear Hossein,

I think in user_data_editor.py set renewal_interval for 3600 hour,

In main function :

if user_data['renewal_interval'] != 0:
        try:
            j.run_repeating(renew_config, user_data['renewal_interval']*3600)
        except Exception as e:
            print(f'Error happened during renew:\n{e}')

you use it as a repeated function to renew the config.

How we can set this parameter ?
in /set renewal_interval number also it doesn't work

@GhostOfSarina
Copy link
Author

I change the main code to set a configuration on it

t = datetime.time(10, 00, 00, 000000)
j.run_daily(renew_config, t)

@hrostami
Copy link
Owner

I asked a professional cloud engineer and he said renewing uuid pairs and other parameters is unnecessary and doesn't have an effect on server traceability so I have disabled it by default. If you have older versions you could simply set renewal interval to 0 and then rebstart configer using either tg bot with reboot command or ssh into your server and systemctl restart configer. good luck and feel free to comment here if there was further complications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants