flame hq element config + branding, e2ee-default-off (config.json + .well-known verified serving both flags 2026-08-29)
This commit is contained in:
59
element/nginx-default.conf
Normal file
59
element/nginx-default.conf
Normal file
@@ -0,0 +1,59 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location = / {
|
||||
try_files /index.html =404;
|
||||
add_header Cache-Control "no-cache";
|
||||
sub_filter_once off;
|
||||
sub_filter '<title>Element</title>' '<title>Flame HQ</title>';
|
||||
sub_filter 'name="application-name" content="Element"' 'name="application-name" content="Flame HQ"';
|
||||
sub_filter 'name="apple-mobile-web-app-title" content="Element"' 'name="apple-mobile-web-app-title" content="Flame HQ"';
|
||||
sub_filter 'https://app.element.io/themes/element/img/logos/opengraph.png' 'https://hq.b2bgrowth.systems/flame-hq/welcome-background.png';
|
||||
sub_filter '</head>' '<link rel="stylesheet" href="/flame-hq/flame-hq.css"><link rel="icon" type="image/png" href="/flame-hq/mark.png"><link rel="apple-touch-icon" href="/flame-hq/mark.png"></head>';
|
||||
}
|
||||
|
||||
location = /index.html {
|
||||
add_header Cache-Control "no-cache";
|
||||
sub_filter_once off;
|
||||
sub_filter '<title>Element</title>' '<title>Flame HQ</title>';
|
||||
sub_filter 'name="application-name" content="Element"' 'name="application-name" content="Flame HQ"';
|
||||
sub_filter 'name="apple-mobile-web-app-title" content="Element"' 'name="apple-mobile-web-app-title" content="Flame HQ"';
|
||||
sub_filter 'https://app.element.io/themes/element/img/logos/opengraph.png' 'https://hq.b2bgrowth.systems/flame-hq/welcome-background.png';
|
||||
sub_filter '</head>' '<link rel="stylesheet" href="/flame-hq/flame-hq.css"><link rel="icon" type="image/png" href="/flame-hq/mark.png"><link rel="apple-touch-icon" href="/flame-hq/mark.png"></head>';
|
||||
}
|
||||
|
||||
location = /version {
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
location /config {
|
||||
root /tmp/element-web-config;
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
location /modules {
|
||||
alias /modules;
|
||||
}
|
||||
|
||||
location = /manifest.json {
|
||||
alias /flame-hq/manifest.json;
|
||||
default_type application/manifest+json;
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
location /flame-hq/ {
|
||||
alias /flame-hq/;
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
location ~ ^/vector-icons/.*\.(?:ico|png)$ {
|
||||
rewrite ^ /flame-hq/mark.png last;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
}
|
||||
Reference in New Issue
Block a user