34 lines
905 B
ApacheConf
34 lines
905 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
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{HTTPS} !on
|
|
RewriteRule /.* https://%{SERVER_NAME}$0
|
|
|
|
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
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^ index.html [L]
|
|
</Directory>
|