diff --git a/package-lock.json b/package-lock.json index 6d47db2..78910ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "badmanners.xyz", - "version": "2.1.10", + "version": "2.1.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "badmanners.xyz", - "version": "2.1.10", + "version": "2.1.11", "hasInstallScript": true, "dependencies": { "@astrojs/check": "^0.9.2", "@astrojs/rss": "^4.0.7", "@astrojs/tailwind": "^5.1.0", "astro": "^4.13.3", - "astro-htaccess": "^0.1.2", + "astro-htaccess": "^0.2.0", "date-fns": "^3.6.0", "tailwindcss": "^3.4.9", "tippy.js": "^6.3.7", @@ -2239,9 +2239,9 @@ } }, "node_modules/astro-htaccess": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/astro-htaccess/-/astro-htaccess-0.1.2.tgz", - "integrity": "sha512-ki0y7bjhfeocMkPefQA7OT/BsFMYu6hgljkiK2No58FMgALn9w/nj+N9NMWykHMUe9pHUa209/EVtOuoO5UkQw==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/astro-htaccess/-/astro-htaccess-0.2.0.tgz", + "integrity": "sha512-2QCike5DRkeBfbvkhBXkaRw18WkOLu7+jo7GSrlBPc8lcfk0BipXsGl8ggv5MCcDEt1iADdki9V5W4XecA0T7w==", "license": "MIT", "peerDependencies": { "astro": "^4.0.0" diff --git a/package.json b/package.json index f922585..33ddd5d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "badmanners.xyz", "type": "module", - "version": "2.1.10", + "version": "2.1.11", "scripts": { "postinstall": "astro sync", "dev": "astro dev", @@ -19,7 +19,7 @@ "@astrojs/rss": "^4.0.7", "@astrojs/tailwind": "^5.1.0", "astro": "^4.13.3", - "astro-htaccess": "^0.1.2", + "astro-htaccess": "^0.2.0", "date-fns": "^3.6.0", "tailwindcss": "^3.4.9", "tippy.js": "^6.3.7", diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..d3a34cd --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,3 @@ + + ForceType application/json + \ No newline at end of file diff --git a/public/.well-known/.htaccess b/public/.well-known/.htaccess new file mode 100644 index 0000000..a0c831a --- /dev/null +++ b/public/.well-known/.htaccess @@ -0,0 +1,6 @@ + + ForceType application/json + Header add Access-Control-Allow-Origin * + Header add Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" + Header add Access-Control-Allow-Headers "X-Requested-With, Content-Type, Authorization" + \ No newline at end of file diff --git a/public/.well-known/matrix/.htaccess b/public/.well-known/matrix/.htaccess new file mode 100644 index 0000000..95e032e --- /dev/null +++ b/public/.well-known/matrix/.htaccess @@ -0,0 +1,12 @@ + + ForceType application/json + Header add Access-Control-Allow-Origin * + Header add Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" + Header add Access-Control-Allow-Headers "X-Requested-With, Content-Type, Authorization" + + + ForceType application/json + Header add Access-Control-Allow-Origin * + Header add Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" + Header add Access-Control-Allow-Headers "X-Requested-With, Content-Type, Authorization" + \ No newline at end of file diff --git a/public/.well-known/matrix/client b/public/.well-known/matrix/client new file mode 100644 index 0000000..1df5d5e --- /dev/null +++ b/public/.well-known/matrix/client @@ -0,0 +1,8 @@ +{ + "m.homeserver": { + "base_url": "https://matrix.badmanners.xyz" + }, + "org.matrix.msc3575.proxy": { + "url": "https://matrix.badmanners.xyz" + } +} \ No newline at end of file diff --git a/public/.well-known/matrix/server b/public/.well-known/matrix/server new file mode 100644 index 0000000..998cd25 --- /dev/null +++ b/public/.well-known/matrix/server @@ -0,0 +1,3 @@ +{ + "m.server": "matrix.badmanners.xyz:443" +} \ No newline at end of file