diff --git a/files/www/config.json b/files/www/config.json new file mode 100644 index 0000000..5599a4b --- /dev/null +++ b/files/www/config.json @@ -0,0 +1,35 @@ +{ + "default_server_config": { + "m.homeserver": { + "server_name": "Heizhaus", + "base_url": "https://matrix.0x90.space/" + } + }, + "brand": "Element", + "branding": { + "welcomeBackgroundUrl": "heizhaus.jpg", + "authHeaderLogoUrl": "heizhaus-logo.png", + "authFooterLinks": [ + { + "text": "Homepage", + "url": "https://heizhaus.org/" + }, + { + "text": "Wiki", + "url": "https://wiki.heizhaus.org/" + } + ] + }, + "defaultCountryCode": "DE", + "settingDefaults": { + "UIFeature.registration": false + }, + "disable_custom_urls": true, + "permalinkPrefix": "https://chat.heizhaus.org", + "showLabsSettings": true, + "roomDirectory": { + "servers": [ + "chat.heizhaus.org" + ] + } +} diff --git a/files/www/element.sha256 b/files/www/element.sha256 new file mode 100644 index 0000000..9326ee9 --- /dev/null +++ b/files/www/element.sha256 @@ -0,0 +1 @@ +sha256:1f309d7863f583fef7294aa34ae19413991fd82aebd4c5d8bc3ac72eab04f71a. \ No newline at end of file diff --git a/files/www/heizhaus-logo.png b/files/www/heizhaus-logo.png new file mode 100644 index 0000000..b97cd9e Binary files /dev/null and b/files/www/heizhaus-logo.png differ diff --git a/files/www/heizhaus.jpg b/files/www/heizhaus.jpg new file mode 100644 index 0000000..ac93a62 Binary files /dev/null and b/files/www/heizhaus.jpg differ diff --git a/files/www/httpd.conf b/files/www/httpd.conf new file mode 100644 index 0000000..ee5186c --- /dev/null +++ b/files/www/httpd.conf @@ -0,0 +1,49 @@ +server "0x90.space" { + listen on egress port 80 + log style forwarded + root "/0x90.space" + + tcp { backlog 128 } +} + +server "quellcode.0x90.space" { + listen on egress port 80 + log style forwarded + root "/quellcode.0x90.space" + + tcp { backlog 128 } +} + +server "chat.0x90.space" { + listen on egress port 80 + log style forwarded + root "/element" + + location "/.well-known/matrix/*" { + root "/matrix" + request strip 2 + default type application/json + } + + tcp { backlog 128 } +} + +server "chat.heizhaus.org" { + listen on egress port 80 + log style forwarded + root "/element" + + location "/.well-known/matrix/*" { + root "/matrix" + request strip 2 + default type application/json + } + + tcp { backlog 128 } +} + +# for php: +# directory index "index.php" +# location match ".*%.php" { +# fastcgi socket "/run/php-fpm.sock" +# } diff --git a/files/www/matrix_client.json b/files/www/matrix_client.json new file mode 100644 index 0000000..d05639f --- /dev/null +++ b/files/www/matrix_client.json @@ -0,0 +1,6 @@ +{ + "m.homeserver": { + "base_url": "https://matrix.0x90.space/" + } +} + diff --git a/files/www/matrix_server.json b/files/www/matrix_server.json new file mode 100644 index 0000000..00b017f --- /dev/null +++ b/files/www/matrix_server.json @@ -0,0 +1,4 @@ +{ + "m.server": "matrix.0x90.space:443" +} +