Edge: chat root redirects to branded client, serve matrix well-known; onboarding hero full-bleed on black
This commit is contained in:
parent
699b9412c1
commit
39dcf7a8b8
2 changed files with 63 additions and 2 deletions
|
|
@ -207,13 +207,13 @@ export default function OnboardingPage(): React.ReactElement {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="mb-5">
|
<div className="mb-5">
|
||||||
<div className="mb-4 overflow-hidden rounded-lg border border-border-subtle">
|
<div className="-m-6 mb-5 overflow-hidden bg-black">
|
||||||
<img
|
<img
|
||||||
src="/brand/hero.png"
|
src="/brand/hero.png"
|
||||||
alt="Tactical Media Broadcast Hub — arrows from a circle, warm red on black"
|
alt="Tactical Media Broadcast Hub — arrows from a circle, warm red on black"
|
||||||
width={1024}
|
width={1024}
|
||||||
height={1024}
|
height={1024}
|
||||||
className="h-36 w-full object-cover"
|
className="mx-auto h-auto w-full max-h-[420px] object-contain"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,38 @@ http {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name chat.occupymedia.cc;
|
||||||
|
# Tunnel origin path: browsers hitting the bare server root get the branded
|
||||||
|
# client; the Matrix API flows through untouched.
|
||||||
|
location = / {
|
||||||
|
return 302 https://element.occupymedia.cc;
|
||||||
|
}
|
||||||
|
# Client discovery for @user:chat.occupymedia.cc logins (tuwunel does not serve it).
|
||||||
|
location = /.well-known/matrix/client {
|
||||||
|
default_type application/json;
|
||||||
|
return 200 '{"m.homeserver":{"base_url":"https://chat.occupymedia.cc"}}';
|
||||||
|
}
|
||||||
|
location = /.well-known/matrix/server {
|
||||||
|
default_type application/json;
|
||||||
|
return 200 '{"m.server":"chat.occupymedia.cc:443"}';
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://100.117.210.52:6167;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto http;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
proxy_read_timeout 3600s;
|
||||||
|
proxy_send_timeout 3600s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
listen [::]:443 ssl;
|
listen [::]:443 ssl;
|
||||||
|
|
@ -106,6 +138,18 @@ http {
|
||||||
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
||||||
|
|
||||||
|
location = / {
|
||||||
|
return 302 https://element.occupymedia.cc;
|
||||||
|
}
|
||||||
|
location = /.well-known/matrix/client {
|
||||||
|
default_type application/json;
|
||||||
|
return 200 '{"m.homeserver":{"base_url":"https://chat.occupymedia.cc"}}';
|
||||||
|
}
|
||||||
|
location = /.well-known/matrix/server {
|
||||||
|
default_type application/json;
|
||||||
|
return 200 '{"m.server":"chat.occupymedia.cc:443"}';
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://100.117.210.52:6167;
|
proxy_pass http://100.117.210.52:6167;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
@ -192,6 +236,23 @@ http {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
server_name element.occupymedia.cc;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/occupymedia.cc/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/occupymedia.cc/privkey.pem;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://occ-element:80;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Everything else on this IP: drop the connection.
|
# Everything else on this IP: drop the connection.
|
||||||
server {
|
server {
|
||||||
listen 443 ssl default_server;
|
listen 443 ssl default_server;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue