Manage TTL duration in config
Dependencies
- [2]
ZE5UFPX4Add TTL cache for CSRF - [3]
HTYEGVBUAdd data to reset password page - [*]
WW3KRXX6Add page for reset game password - [*]
EVP2FSBHSplit index page - [*]
WVHXYKCVAdd postgresql pools - [*]
4MZ4VIR7Initial commit - [*]
BCXEUKX6Add config, static files and web server - [*]
7R6HAATPOptional publish static files if use reverse-proxy
Change contents
- replacement in src/pages/reset_game_pwd.rs at line 60
cache.insert(csrf, token, std::time::Duration::from_secs(600));cache.insert(csrf,token,std::time::Duration::from_secs(data.cache_duration_sec),); - edit in src/pages/mod.rs at line 14
pub cache_duration_sec: u64, - edit in src/main.rs at line 42
cache_duration_sec, - edit in src/main.rs at line 90
cache_duration_sec, - edit in src/config.rs at line 14[2.385][10.731]
pub cache_duration_sec: u64,