Skip to content

Commit

Permalink
add .well-known for matrix server
Browse files Browse the repository at this point in the history
  • Loading branch information
kalambet committed Nov 5, 2023
1 parent 20ba446 commit 80e98d9
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
run: npm run build

- name: Bundle Dist Files
run: cp -v *.{'html','css','svg'} ./dist
run: cp -v *.{'html','css','svg'} ./public

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ./dist
folder: ./public
clean: true
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ out

# Nuxt.js build / generate output
.nuxt
dist
public/*.html
public/*.css
public/*.svg
public/*.js

# Gatsby files
.cache/
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "More awesome website of the Department of Decentralization.",
"main": "index.js",
"scripts": {
"clean": "rm -rv ./dist",
"clean": "rm -v ./public/*.{'html','css','svg','js'}",
"build": "tsc",
"bundle": "cp -v *.{'html','css','svg'} ./dist",
"bundle": "cp -v *.{'html','css','svg'} ./public",
"start": "lite-server"
},
"keywords": [],
Expand Down
11 changes: 11 additions & 0 deletions public/.well-known/matrix/client
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"m.homeserver": {
"base_url": "https://matrix.dod.ngo"
},
"m.identity_server": {
"base_url": "https://matrix.dod.ngo"
},
"org.matrix.msc3575.proxy": {
"url": "https://matrix.dod.ngo/sliding-sync"
}
}
3 changes: 3 additions & 0 deletions public/.well-known/matrix/server
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"m.server": "matrix.dod.ngo:8448"
}
1 change: 1 addition & 0 deletions public/_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: [".well-known"]
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
"outDir": "./dist", /* Specify an output folder for all emitted files. */
"outDir": "./public", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
// "noEmit": true, /* Disable emitting files from a compilation. */
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
Expand Down

0 comments on commit 80e98d9

Please sign in to comment.