e84b87ed16
🔧 fix: update navigation href resolution to include localized paths 🆕 feat: add new FeatureIcon component for feature boxes 🎨 style: improve styling for prose elements in richtext blocks 🛠️ refactor: streamline medialib image loading and caching logic 📦 chore: update mock data handling to support new medialib entries 🔄 chore: synchronize i18n initialization and locale management 📝 docs: update video tour descriptions to reflect recent changes
43 lines
1.4 KiB
ApacheConf
43 lines
1.4 KiB
ApacheConf
AddType application/javascript .mjs
|
|
|
|
#DirectoryIndex index.html spa.html
|
|
DirectoryIndex index
|
|
# DirectoryIndex spa.html
|
|
|
|
SetEnv MATOMO no
|
|
|
|
<ifModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
|
|
RewriteRule ^/?api/(.*)$ http://tibi-server:8080/api/v1/_/__TIBI_NAMESPACE__/$1 [P,QSA,L]
|
|
|
|
# Set the Host header for requests to sentry
|
|
RequestHeader set Host sentry.basehosts.de env=proxy-sentry
|
|
RequestHeader unset Authorization env=proxy-sentry
|
|
# need to update project id
|
|
RewriteRule ^/?_s(.*)$ https://sentry.basehosts.de/api/3/envelope/$1 [P,L,E=proxy-sentry:1]
|
|
|
|
# set in vhost or global in apache
|
|
#SSLProxyEngine On
|
|
#SSLProxyVerify none
|
|
#SSLProxyCheckPeerCN off
|
|
#SSLProxyCheckPeerName off
|
|
#SSLProxyCheckPeerExpire off
|
|
# set url to header for proxy
|
|
|
|
SetEnvIf Request_URI "^(.*)$" REQUEST_URI=$1
|
|
RequestHeader set x-ssr-url "%{REQUEST_URI}e" env=proxy-ssr
|
|
# set env if header x-ssr-skip is set to track request
|
|
SetEnvIfNoCase x-ssr-skip ".+" MATOMO=yes
|
|
# append to log
|
|
SetEnvIfNoCase x-ssr-ref "^(.+)$" LOG_REFERER=$1
|
|
SetEnvIfNoCase x-ssr-res "^(.+)$" LOG_RESOLUTION=$1
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^/?(.*)$ http://tibi-server:8080/api/v1/_/__TIBI_NAMESPACE__/ssr [P,QSA,L,E=proxy-ssr]
|
|
# RewriteRule (.*) /spa.html [QSA,L]
|
|
|
|
</ifModule>
|