feat: more well known and nginx config
All checks were successful
ci / docker (push) Successful in 4m32s
All checks were successful
ci / docker (push) Successful in 4m32s
This commit is contained in:
parent
87dc56562e
commit
6199051aef
5 changed files with 41 additions and 1 deletions
|
@ -13,6 +13,8 @@ RUN npm run build
|
||||||
|
|
||||||
FROM nginx:stable as production
|
FROM nginx:stable as production
|
||||||
WORKDIR /home/node/app
|
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 what we've installed/built from production
|
||||||
COPY --chown=nobody:nogroup --from=build /home/node/app/build /usr/share/nginx/html/
|
COPY --chown=nobody:nogroup --from=build /home/node/app/build /usr/share/nginx/html/
|
||||||
|
|
||||||
|
|
22
nginx.conf
Normal file
22
nginx.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
6
static/.well-known/matrix/client
Normal file
6
static/.well-known/matrix/client
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"m.homeserver": {
|
||||||
|
"base_url": "https://chat.tjo.space"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"m.server": "matrix.tjo.space:443"
|
"m.server": "matrix.chat.tjo.space:443"
|
||||||
}
|
}
|
||||||
|
|
10
static/.well-known/matrix/support
Normal file
10
static/.well-known/matrix/support
Normal 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"
|
||||||
|
}
|
Loading…
Reference in a new issue