<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 14, 2018 at 4:08 PM, andrew terry <span dir="ltr"><<a href="mailto:andrew.terry@centremaps.co.uk" target="_blank">andrew.terry@centremaps.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Of course. This is only some closed testing. One element i did note from your<br>
code and some of the docker examples on github was seemingly explicitly<br>
setting the sockets/processes. I didn't have a problem not doing this with<br>
2.18 and haven't seen it in the documentation generally, do i need to extend<br>
my linux knowledge?:<br>
<br>
# Configure FastCGI nginx conf<br>
sed -i -e "s@QGIS_SERVER_DIR@${QGIS_<wbr>SERVER_DIR}@g"<br>
/etc/nginx/sites-enabled/qgis-<wbr>server-fcgi<br>
SOCKETS=''<br>
for i in $( eval echo {1..$NUM_PROCESSES}); do SOCKETS="    server<br>
unix:/run/qgis_mapserv$i.sock;<wbr>\n$SOCKETS" ; done<br>
sed -i -e "s@QGIS_SERVER_SOCKETS@${<wbr>SOCKETS}@g"<br>
/etc/nginx/sites-enabled/qgis-<wbr>server-fcgi<br>
<br></blockquote><div><br></div><div>No: that is not necessary, I just did it in order to have some basic load balancing.</div><div><br></div><div>You can have a single server instance listening on a single socket.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Alessandro Pasotti-2 wrote<br>
> On Thu, Jun 14, 2018 at 3:46 PM, andrew terry &lt;<br>
<br>
> andrew.terry@.co<br>
<div class="HOEnZb"><div class="h5"><br>
> &gt; wrote:<br>
> <br>
>><br>
> <br>
> np, but please keep in mind that my vagrant was prepared for a training<br>
> course and it wasn't security audited!<br>
> <br>
> the goal was to explore all different possibilities to deploy QGIS server<br>
> (with some focus to Python).<br>
> <br>
> <br>
> <br>
> Alessandro Pasotti-2 wrote<br>
>> > Looks good.<br>
>> ><br>
>> > I don't know where else to look but if you want a tested working<br>
>> > configuration you can have a look to:<br>
>> > <a href="https://github.com/elpaso/qgis3-server-vagrant" rel="noreferrer" target="_blank">https://github.com/elpaso/<wbr>qgis3-server-vagrant</a><br>
>> ><br>
>> > On Thu, Jun 14, 2018 at 3:34 PM, andrew terry &lt;<br>
>><br>
>> > andrew.terry@.co<br>
>><br>
>> > &gt; wrote:<br>
>> ><br>
>> >> Hi Alessandro,<br>
>> >><br>
>> >> Thanks for the thought, i did include the xvfb install and config.<br>
>> Always<br>
>> >> double check though and the status report is as follows - only just<br>
>> >> showing<br>
>> >> as started as i booted the instance to check:<br>
>> >><br>
>> >> ● xvfb.service - X Virtual Frame Buffer Service<br>
>> >>    Loaded: loaded (/etc/systemd/system/xvfb.<wbr>service; enabled; vendor<br>
>> >> preset:<br>
>> >> enabled)<br>
>> >>    Active: active (running) since Thu 2018-06-14 13:23:50 UTC; 37s ago<br>
>> >>  Main PID: 840 (Xvfb)<br>
>> >>     Tasks: 3 (limit: 4915)<br>
>> >>    CGroup: /system.slice/xvfb.service<br>
>> >>            └─840 /usr/bin/Xvfb :99 -screen 0 1024x768x24 -ac<br>
>> +extension<br>
>> >> GLX<br>
>> >> +render -noreset<br>
>> >><br>
>> >> Jun 14 13:23:50 ip-172-31-14-242 systemd[1]: Started X Virtual Frame<br>
>> >> Buffer<br>
>> >> Service.<br>
>> >><br>
>> >> Thanks Andy<br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/QGIS-User-f4125267.<wbr>html</a><br>
>> >> ______________________________<wbr>_________________<br>
>> >> Qgis-user mailing list<br>
>> >><br>
>><br>
>> > Qgis-user@.osgeo<br>
>><br>
>> >> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> >> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> >><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Alessandro Pasotti<br>
>> > w3:   <a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a><br>
>> ><br>
>> > ______________________________<wbr>_________________<br>
>> > Qgis-user mailing list<br>
>><br>
>> > Qgis-user@.osgeo<br>
>><br>
>> > List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> > Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/QGIS-User-f4125267.<wbr>html</a><br>
>> ______________________________<wbr>_________________<br>
>> Qgis-user mailing list<br>
>> <br>
<br>
> Qgis-user@.osgeo<br>
<br>
>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>><br>
> <br>
> <br>
> <br>
> -- <br>
> Alessandro Pasotti<br>
> w3:   <a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a><br>
> <br>
> ______________________________<wbr>_________________<br>
> Qgis-user mailing list<br>
<br>
> Qgis-user@.osgeo<br>
<br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/QGIS-User-f4125267.<wbr>html</a><br>
______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>