<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<div class="moz-signature">
<meta charset="utf-8">
<title>SkenData Email Signatur</title>
<div>
<br>
</div>
Hello Marchin,<br>
<br>
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.<br>
So you could mount `/vsis3/Bucket/key/` to `/var/www/html/map` (or
what you like) and then make your call like
`<a class="moz-txt-link-freetext" href="http://12.345.678.9:8080/?map=/var/www/html/map/MarcinTest.map">http://12.345.678.9:8080/?map=/var/www/html/map/MarcinTest.map</a>.<br>
You can also define an environment variable to avoid that long
path (see
<a class="moz-txt-link-freetext" href="https://mapserver.gis.umn.edu/nl_NL/environment_variables.html">https://mapserver.gis.umn.edu/nl_NL/environment_variables.html</a>).
That would make your path much shorter and avoid any explicid
pathname in the URL.<br>
<br>
Best<br>
<br>
Lars<br>
<br>
<br>
</div>
<div class="moz-cite-prefix">Am 20.10.22 um 13:58 schrieb Marcin
Niemyjski via MapServer-users:<br>
</div>
<blockquote type="cite"
cite="mid:AS1PR03MB8149372D483E1CFAF78E021FA82A9@AS1PR03MB8149.eurprd03.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hello,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
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:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I can access Mapserver on docker via url:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
<a
href="http://12.345.678.9:8080/?map=/etc/mapserver/MarcinTest.map&service=WMS&request=GetCapabilities"
id="LPlnk206620" moz-do-not-send="true">http://12.345.678.9:8080/?map=/etc/mapserver/MarcinTest.map</a></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
What I want is:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
<a
href="http://12.345.678.9:8080/?map=/etc/mapserver/MarcinTest.map&service=WMS&request=GetCapabilities"
class="ContentPasted1" moz-do-not-send="true">http://12.345.678.9:8080/?map=</a><span
style="color:rgb(36, 36, 36);font-family:-apple-system,
BlinkMacSystemFont, "Segoe UI", system-ui,
"Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Web",
sans-serif;font-size:14px;orphans:2;widows:2;background-color:rgb(232,
235, 250);display:inline !important" class="ContentPasted2">/vsis3/Bucket/key/MarcinTest.map</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
Th goal is to don't have to keep mapfiles localy.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
I hope somebody will have a workaround.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
As always thank you for your help,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
Marcin<br>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
MapServer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br>
</body>
</html>