feat: more well known and nginx config
All checks were successful
ci / docker (push) Successful in 4m32s

This commit is contained in:
Tine Jozelj 2024-01-01 23:53:34 +01:00
parent 87dc56562e
commit 6199051aef
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
5 changed files with 41 additions and 1 deletions

View file

@ -13,6 +13,8 @@ RUN npm run build
FROM nginx:stable as production
WORKDIR /home/node/app
# Copy nginx config
COPY --chown=nobody:nogroup nginx.conf /etc/nginx/conf.d/default.conf
# Copy what we've installed/built from production
COPY --chown=nobody:nogroup --from=build /home/node/app/build /usr/share/nginx/html/

22
nginx.conf Normal file
View file

@ -0,0 +1,22 @@
server {
listen 80 default_server;
server_name _;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /.well-known {
root /usr/share/nginx/html/.well-known;
default_type application/json;
add_header Access-Control-Allow-Origin *;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

View file

@ -0,0 +1,6 @@
{
"m.homeserver": {
"base_url": "https://chat.tjo.space"
}
}

View file

@ -1,3 +1,3 @@
{
"m.server": "matrix.tjo.space:443"
"m.server": "matrix.chat.tjo.space:443"
}

View file

@ -0,0 +1,10 @@
{
"contacts": [
{
"matrix_id": "@tine:tjo.space",
"email_address": "tine@tjo.space",
"role": "m.role.admin"
},
],
"support_page": "https://tjo.space"
}