simple flag counter website
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| config.toml | ||
| README.txt | ||
Getting started: 1. modify the config.toml file to suit your needs. 2. obtain a CSV ip range -> country file (you can get one from https://github.com/sapics/ip-location-db) (please make sure the csv follows ISO 3166-1 alpha-2) 3. run the application 4. put a reverse proxy in front of it, make sure that reverse proxy _always_ puts the "x-forwarded-for" header onto your requests 5. download your flags into the folder you configured in config.toml, the folder should contain files like "hr.png" for the croatian flag, "us.png" for the USA (ISO 3166-1 alpha-2) 6. once again verify that your config is correct troubleshooting: settings RUST_LOG=debug makes the log very verbose, which will display (among other things) the sql queries being ran, the parsing of IPs and other things reading the debug log could help you resolve the issue if you have a issue you cannot figure out feel free to reach out. you can find my contact info on my homepage