simple flag counter website
Find a file
2026-06-09 18:00:42 +02:00
src homepage and tutorial done 2026-06-09 18:00:42 +02:00
.gitignore implement the slug view, homepage WIP 2026-06-09 17:05:12 +02:00
Cargo.lock implement the slug view, homepage WIP 2026-06-09 17:05:12 +02:00
Cargo.toml implement the slug view, homepage WIP 2026-06-09 17:05:12 +02:00
config.toml homepage and tutorial done 2026-06-09 18:00:42 +02:00
README.txt implement the slug view, homepage WIP 2026-06-09 17:05:12 +02:00

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