[qgis-qwc2] QWC-services without Docker?
Sandro Mani
manisandro at gmail.com
Thu Jan 21 04:28:25 PST 2021
Hi Thomas
You can run the services also through other means, for instance Apache +
WSGI with a Python virtualenv. There is currently no generic example
published, but essentially you can clone all services you want to use to
some root directory and write something like
----
# Root directory
Define root_dir /var/www/qwc-services
# WSGI setup
WSGIDaemonProcess qwc2 user=www-data group=www-data processes=2
threads=5 python-home=/var/www/venv-qwc2 WSGIProcessGroup qwc2
WSGIPassAuthorization on
<Directory ${root_dir}>
Require all granted
</Directory>
# Application environment
SetEnv JWT_SECRET_KEY MY_SECRET_KEY
SetEnv CONFIG_PATH ${root_dir}/config
WSGIScriptAlias /qwc/admin ${root_dir}/qwc-admin-gui/server.wsgi
WSGIScriptAlias /qwc/ows ${root_dir}/qwc-ogc-service/server.wsgi
WSGIScriptAlias /qwc ${root_dir}/qwc-map-viewer/server.wsgi # etc...
WSGIScriptAlias /intern/config_generator${root_dir}/qwc-config-generator/server.wsgi
SetEnv INPUT_CONFIG_PATH${root_dir}/config-in/
SetEnv OUTPUT_CONFIG_PATH${root_dir}/config/
<Location /intern>
Require ip 127.0.0.1 ::1
</Location>
----
You need to make sure the services play together, look at the
docker-compose.yml / sample tenantConfig.json as a starting point.
The demo app is just a sample application built on top of the QWC2
components. The qwc-map-viewer is the service serving a production build
of a QWC2 application. See the qwc-map-viewer README for more details.
Best
Sandro
On 21.01.21 11:24, Thomas Schüttenberg wrote:
> Hi there!
>
> Now that I have learned to successfully get the QWC2 demo app[1] up and running, I would like to install some enhancements (a.k.a. qwc-services).
>
> I have read about qwc-services[2] and now I have some general questions: Is it possible to deploy these extension services without Docker? And if so, how? (Because container virtualisation is unfortunately not an option in my case here).
>
> Also, do I understand correctly that the QWC2 Demo App essentially only consists of the "QGIS Web Client 2 Components"[3] and the "QWC Map Viewer"[4]?
> And that I would therefore - theoretically - need some sort of (yarn?) script that would contain the desired qwc-service sources[2] in order to compile a comprehensive, "full fletched" application bundle (as described in the demo app docs[1]?
>
> Sorry for the possibly awkward or incorrect wording, I'm still trying to get to grips with this subject.
>
> Any help appreciated, cheers
> Thomas
>
> [1] https://github.com/qgis/qwc2-demo-app
> [2] https://github.com/qwc-services
> [3] https://github.com/qgis/qwc2
> [4] https://github.com/qwc-services/qwc-map-viewer
> _______________________________________________
> qgis-qwc2 mailing list
> qgis-qwc2 at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-qwc2/attachments/20210121/8f4de88b/attachment.html>
More information about the qgis-qwc2
mailing list