hyperknot / openfreemap

Free and open-source map hosting solution with custom styles for websites and apps, using OpenStreetMap data
https://openfreemap.org/
Other
2.81k stars 58 forks source link

What values to use for `rclone.conf`? #40

Open mcmikemn opened 2 days ago

mcmikemn commented 2 days ago

The self hosting docs say to "copy .env.sample to .env and set the values", but it doesn't mention config/rclone.conf.sample. I ignored rclone.conf.sample and got:

Traceback (most recent call last):
File "/root/openfreemap/./init-server.py", line 146, in <module>
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/root/openfreemap/./init-server.py", line 68, in http_host_static
prepare_http_host(c)
File "/root/openfreemap/ssh_lib/tasks.py", line 102, in prepare_http_host
assert (CONFIG_DIR / 'rclone.conf').exists()
AssertionError

When I copy config/rclone.conf.sample to config/rclone.conf and enter values for my MinIO service, I get past the previous error (which tells me that reclone.conf needs to exist) but I now get:

2024/11/05 13:45:59 NOTICE: s3: s3 provider "MinIO" not known - please set correctly

My assumption is that I'm supposed to enter the s3 endpoint where I want the tiles stored. Is that correct? If so, what provider value would work for MinIO?

Or maybe the script is trying to download source files from a public s3 on Cloudflare. If so, what are the creds and endpoint for that?

I appreciate any help.

hyperknot commented 9 hours ago

Can you tell a bit more about what are you trying to achieve? Simply running http-host? What is your DNS setup? Cloudflare with orange proxy by any chance?

mcmikemn commented 7 hours ago

Yes, I'm only trying to install OFM with http-host - not the tile-gen.

I host my DNS zone on Digital Ocean. I have a droplet with Traefik on it that is VPNed (wireguard) to Traefik on a server in my homelab which then forwards traffic to the appropraite Docker container.