I tend to simply mount S3 buckets so I can use them with local file path. This works well on Ubuntu. This also has the advantage not to put a key into a URL.
So you could mount `/vsis3/Bucket/key/` to `/var/www/html/map` (or what you like) and then make your call like `http://12.345.678.9:8080/?map=/var/www/html/map/MarcinTest.map.
You can also define an environment variable to avoid that long path (see https://mapserver.gis.umn.edu/nl_NL/environment_variables.html). That would make your path much shorter and avoid any explicid pathname in the URL.
Best
Lars
Am 20.10.22 um 13:58 schrieb Marcin
Niemyjski via MapServer-users:
Hello,
I'm using camptocamp/mapserver on docker and I wanted to know If it is possible to store mapfiles on S3 Bucket to which docker has access. For Example:
I can access Mapserver on docker via url:
What I want is:
http://12.345.678.9:8080/?map=/vsis3/Bucket/key/MarcinTest.map
Th goal is to don't have to keep mapfiles localy.
I hope somebody will have a workaround.As always thank you for your help,Marcin
_______________________________________________ MapServer-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
OpenPGP_0x667E0B7B73E250FB.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature_______________________________________________ MapServer-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
