Thanks for make this amazing project, I have been searching a self-hosted read it later project which was made by golang for a long time.
I found readflow yesterday and tried to deploy it to my server for several hours, but still not working, I'm not a professional programmer, I don't know much about the instructions in the configuration file, I tried my best to understand what the config file was saying and google what I didn't understand, but no luck.
In fact, it took me almost 2 hours just to google how to successfully compile binaries when go get
fails. Maybe a layman like me is not the target user of this project, but I still hope to try this project, I will try to explain the problems I have encountered and hope it can be solved, thank you again for developing this project.
config.toml
[global]
db = "postgres://username:password@localhost/databasename?sslmode=disable"
listen_addr = ":9021"
metrics_listen_addr = ""
authn = "mock"
public_url = ""
secret_salt = "${READFLOW_SECRET_SALT}"
block_list = "${READFLOW_BLOCK_LIST}"
[integration]
external_event_broker_uri = "${READFLOW_BROKER_URI}"
external_web_scraper_url = "${READFLOW_WEB_SCRAPER_URL}"
image_proxy_url = "${READFLOW_IMAGE_PROXY_URL}"
avatar_provider = "${READFLOW_AVATAR_PROVIDER}"
[integration.sentry]
dsn_url = "${READFLOW_SENTRY_DSN}"
[integration.pocket]
consumer_key = "${READFLOW_POCKET_CONSUMER_KEY}"
run it
readflow --config config.toml
the output
{"level":"info","component":"database","uri":"postgres://readflow:xxxxx@localhost/readflow?sslmode=disable","time":1658973321,"message":"using PostgreSQL database"}
{"level":"info","component":"cache","uri":"boltdb:///tmp/readflow.cache","time":1658973321,"message":"using BoltDB cache"}
{"level":"info","component":"service","rev":1,"time":1658973321,"message":"properties loaded"}
{"level":"info","time":1658973321,"message":"using Mock as authentication backend"}
{"level":"info","component":"api","provider":"https://robohash.org/{seed}?set=set4&size=48x48","time":1658973321,"message":"using Avatar provider"}
{"level":"info","listen":":9021","time":1658973321,"message":"server started"}
I can't get the web page in the browser when visit http://ip:9021
, I can only see a json file
{"version":"snapshot","authority":"mock","vapid":"BASakRma0VQ2znpuOtnaSVsLg34PAatW6dUMLi1t55vdU2Awxnulnb5UmPR4yEiOq5xamXz6YVVoR8QNhq8rDQc"}