The *taiga* role installs the three components of Taiga: * taiga-back * taiga-events * taiga-front *taiga-back* is a Python application. Its dependencies are installed via `pip` in the *taiga* user's site-packages, and the application itself is installed by unpacking the archive. *taiga-events* is a Node.js application. Its dependencies are installed by `npm`, and is itself installed by unpacking the archive. Finally, *taiga-front* is a single-page browser application that is installed by unpacking the archive, and served by Apache. Taiga requires PostgreSQL and RabbitMQ.
34 lines
908 B
ApacheConf
34 lines
908 B
ApacheConf
# vim: set ft=apache :
|
|
ProxyRequests off
|
|
ProxyPreserveHost on
|
|
|
|
ProxyPass /api http://localhost:8001/api
|
|
ProxyPassReverse /api http://localhost:8001/api
|
|
ProxyPass /admin http://localhost:8001/admin
|
|
ProxyPassReverse /admin http://localhost:8001/admin
|
|
ProxyPass /events ws://localhost:8888/events
|
|
|
|
Alias /static /usr/local/lib/taiga/taiga-back/static
|
|
<Directory /usr/local/lib/taiga/taiga-back/static>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
Alias /media /usr/local/lib/taiga/taiga-back/media
|
|
<Directory /usr/local/lib/taiga/taiga-back/media>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
DocumentRoot /usr/local/lib/taiga/taiga-front-dist/dist
|
|
<Directory /usr/local/lib/taiga/taiga-front-dist/dist>
|
|
Require all granted
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{HTTPS} !on
|
|
RewriteRule /.* https://%{SERVER_NAME}$0
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^ index.html [L]
|
|
</Directory>
|