From 5564ffb20798d45bf87910feea39bf02b0d2dee4 Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Fri, 24 Dec 2021 20:08:42 +0530 Subject: django init --- .gitignore | 3 ++ api/README.md | 28 +++++++++++ api/api/api/__init__.py | 0 api/api/api/asgi.py | 16 ++++++ api/api/api/settings.py | 126 ++++++++++++++++++++++++++++++++++++++++++++++++ api/api/api/urls.py | 21 ++++++++ api/api/api/wsgi.py | 16 ++++++ api/api/manage.py | 22 +++++++++ git.html | 44 ----------------- i2p.html | 68 -------------------------- index.html | 108 ----------------------------------------- irc.html | 106 ---------------------------------------- matrix.html | 46 ------------------ sso.html | 45 ----------------- static/git.html | 44 +++++++++++++++++ static/i2p.html | 68 ++++++++++++++++++++++++++ static/index.html | 108 +++++++++++++++++++++++++++++++++++++++++ static/irc.html | 106 ++++++++++++++++++++++++++++++++++++++++ static/matrix.html | 46 ++++++++++++++++++ static/sso.html | 45 +++++++++++++++++ static/styles.css | 17 +++++++ static/xmpp.html | 61 +++++++++++++++++++++++ styles.css | 17 ------- xmpp.html | 61 ----------------------- 24 files changed, 727 insertions(+), 495 deletions(-) create mode 100644 .gitignore create mode 100644 api/README.md create mode 100644 api/api/api/__init__.py create mode 100644 api/api/api/asgi.py create mode 100644 api/api/api/settings.py create mode 100644 api/api/api/urls.py create mode 100644 api/api/api/wsgi.py create mode 100755 api/api/manage.py delete mode 100644 git.html delete mode 100644 i2p.html delete mode 100644 index.html delete mode 100644 irc.html delete mode 100644 matrix.html delete mode 100644 sso.html create mode 100644 static/git.html create mode 100644 static/i2p.html create mode 100644 static/index.html create mode 100644 static/irc.html create mode 100644 static/matrix.html create mode 100644 static/sso.html create mode 100644 static/styles.css create mode 100644 static/xmpp.html delete mode 100644 styles.css delete mode 100644 xmpp.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b3b3d59 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +venv +.vscode +.env \ No newline at end of file diff --git a/api/README.md b/api/README.md new file mode 100644 index 0000000..cee5886 --- /dev/null +++ b/api/README.md @@ -0,0 +1,28 @@ +# Api + +## Develop + +* Assumes you have `git clone`'d the repositiory. + +### Deps and Dev Env + +* Developed on `python 3.10.1` +* Setting up a `venv` +* ensure `django 4` is installed +* `cd /api/` +* `django startproject api` +* Ensure deps are in order. `pip install -r requirements.txt` +* `source .env` (called by `settings.py`) + +## Config + +Primaril refers to the envars and configs defined in `settings.py`. + +Such as: + +* added library declaration +* Authentication middleware +* Storage of static and media files +* Access origin control +* Logging +* etc.. diff --git a/api/api/api/__init__.py b/api/api/api/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/api/api/api/asgi.py b/api/api/api/asgi.py new file mode 100644 index 0000000..40b0b55 --- /dev/null +++ b/api/api/api/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for api project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api.settings') + +application = get_asgi_application() diff --git a/api/api/api/settings.py b/api/api/api/settings.py new file mode 100644 index 0000000..de415b0 --- /dev/null +++ b/api/api/api/settings.py @@ -0,0 +1,126 @@ +""" +Django settings for api project. + +Generated by 'django-admin startproject' using Django 4.0. + +For more information on this file, see +https://docs.djangoproject.com/en/4.0/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.0/ref/settings/ +""" + +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-ft@_y6#^c!ianhl7t&$l0-7_j80u1ba-icxszqru1u8q8g^9_*' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'api.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'api.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.0/ref/settings/#databases + + +# Add postgres for PROD and work with sqlite for devenv? + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/4.0/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.0/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/api/api/api/urls.py b/api/api/api/urls.py new file mode 100644 index 0000000..984d718 --- /dev/null +++ b/api/api/api/urls.py @@ -0,0 +1,21 @@ +"""api URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/4.0/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path + +urlpatterns = [ + path('admin/', admin.site.urls), +] diff --git a/api/api/api/wsgi.py b/api/api/api/wsgi.py new file mode 100644 index 0000000..77ff2d5 --- /dev/null +++ b/api/api/api/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for api project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api.settings') + +application = get_wsgi_application() diff --git a/api/api/manage.py b/api/api/manage.py new file mode 100755 index 0000000..8c45ccf --- /dev/null +++ b/api/api/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/git.html b/git.html deleted file mode 100644 index 62c2608..0000000 --- a/git.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - -LibertaCasa - git - - - -
-┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
-│    │  │─│ │─  │┬┘  │  │─┤
-┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
-
-┌─┐ ┬─┐ ┐─┐ ┬─┐
-│   │─┤ └─┐ │─┤
-└─┘ ┘ │ ──┘ ┘ │
-
-

Git

-
-
-

What's Git (official website)

- -> We aim to publish all relevant infrastructure and configuration details to our community in a way that not only allows for easy access, but also allows for uncomplicated contributions. -> We chose to use a self-hosted Git server to achieve this. Full repository access is possible through Gitea (https://git.com.de), there you may register for your own account, browse, contribute, and, if desired, also publish your own repositories. -> For a quick-glance at only LibertaCasa specific repositories we employ a cgit instance on https://git.casa - if you only want to look, without editing anything, this is the perfect place to go, as it is blazing fast and easy to navigate. - - - - - - - - - - - - -
- - diff --git a/i2p.html b/i2p.html deleted file mode 100644 index 14803d6..0000000 --- a/i2p.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - I2p Setup Guide - - -
-┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
-│    │  │─│ │─  │┬┘  │  │─┤
-┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
-
-┌─┐ ┬─┐ ┐─┐ ┬─┐
-│   │─┤ └─┐ │─┤
-└─┘ ┘ │ ──┘ ┘ │
-
-

i2pd

-
Installation
-
-Whilst connections with the regular I2P client are possible as well, we currently only provide instructions for I2Pd.
-Instructions for installing a distrubtion package for I2Pd or for compiling it from source can be found in its official documentation:
- Distribution Packages and Building from Source 
-
-Distribution Packages should ideally create a "role user and a group"
-as well as provide an `i2pd.service` unit file to use with systemd where available.
-If you built the application from source, you might need to create these manually.
-
-
Configuration for LibertaCasa IRC
-After installing I2Pd, edit or create the file /etc/i2pd/tunnels.conf. -You might need to do this as root (i.e. sudo nano /etc/i2pd/tunnels.conf). -Add the following section to the top of the file: - - [IRC-LibertaCasa] - type = client - address = 127.0.0.3 - port = 6648 - destination = fzsgc66e52ve5phrcktrekqtko423ihau42u72v4cfg6bg4osuda.b32.i2p - destinationport = 6667 - -Start and enable the I2Pd service: - - sudo systemctl enable --now i2pd.service - -You should now be able to connect your IRC client with the following settings: - - IP address / Hostname: 127.0.0.3 - Port: 6648 - SSL/TLS: Off/Disabled - -Nickname, Username and SASL password are the regular details you would use for connecting to LibertaCasa. - - - - - - - - - - - - -
- - diff --git a/index.html b/index.html deleted file mode 100644 index e12b5c3..0000000 --- a/index.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - -LibertaCasa - - - -
-
-┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
-│    │  │─│ │─  │┬┘  │  │─┤
-┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
-
-┌─┐ ┬─┐ ┐─┐ ┬─┐
-│   │─┤ └─┐ │─┤
-└─┘ ┘ │ ──┘ ┘ │
-
-
-A community with multiple interconnected services which provides a safe space for the discussion and dissemination
-of various topics under the umbrella of Science, Philosophy, Politics and a general place to hang back and idle away.
-
-
-There is a focus on supporting FOSS protocols.
-
-
-You can also visit us over The Onion Routing protocol at our onion address.
-
-Donts:
-======
-
-    -Repeated harassment of any network user.
-    -Distribution of child pornography.
-    -Dealing of goods and using the network as a space for commericial operations.
-    -Any denial of service against the network or its users.
-    -Use of our network resources or services for malicious intent.
-    -Connecting to the network for any reason using a compromised machine, including as a proxy or loading trojans or bots.
-    -Unwanted advertisement of websites, IRC network, or channels (also known as spamming).
-    -Evading bans, either those placed by network staff or by individual channels.
-    -Impersonation of network staff or services.
-    -Connecting through open proxies.
-    -Any other behavior deemed inappropriate by network staff.
-
-
-Services (Clearnet):
-===================
-
-Communications:
---------------
-
-IRC | XMPP | Matrix | Jitsi Video Conferencing 
-
-Search Engines:
---------------
-
-SearX | YaCy
-
-Others:
-------
-
-Private Bin | Gitea | Cytube - Watch together
-
-
-Services (Tor):
-==============
-
-Communications:
---------------
-
-IRC
-
-Search Engines:
---------------
-
-SearX | YaCy
-
-
-Services (I2P):
-==============
-
-Communications:
---------------
-
-IRC
-
-
-Contribute:
-==========
-Check our /git info page or head directly to the main repository.
-
-
-
-
-
-
-
-
-
-
-
-
-
- - diff --git a/irc.html b/irc.html deleted file mode 100644 index 5babe9c..0000000 --- a/irc.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - -LibertaCasa - - - -
-┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
-│    │  │─│ │─  │┬┘  │  │─┤
-┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
-
-┌─┐ ┬─┐ ┐─┐ ┬─┐
-│   │─┤ └─┐ │─┤
-└─┘ ┘ │ ──┘ ┘ │
-
- -

IRC

-
-
-Registration
-
-KiwiIRC Webchat | Gamja Webchat | Convos Webchat/Bouncer
-
-
-Connection Details:
-===================
-
-Hostnames are cryptographically cloaked so that your IP address information is not visible to others.
-It is still visible to server administrators.
-To connect configure your IRC client as follows:
-
-Host:       irc.liberta.casa
-Port:       6697
-SSL/TLS:    True
-
-
-If you would like to anonymize the connection against the administrators,
-you can access the network via
-1. TOR:
-
-   Host:     cr36xbvmgjwnfw4sly4kuc6c3ozhesjre3y5pggq5xdkkmbrq6dz4fad.onion
-   Port:     6667
-   SSL/TLS:  False
-
-Webchat via Tor is available through the links on the top - KiwiIRC will offer the best experience.
-
-2. I2P
-
-  Guide to setting up i2p here
-
-  Use the samle configuration shown above.
-  Destination: fzsgc66e52ve5phrcktrekqtko423ihau42u72v4cfg6bg4osuda.b32.i2p
-  Port:        6668
-  SSL/TLS:     False
-
-Account registration FAQ
-========================
-
-1. How do I register my nickname / account?
-
-Use this command, substituting your desired password:
-
-  /msg NickServ register mySecretPassword
-
-You can also register on this page here
-
-Once you register your nick it becomes your account name. It is the name with which you are expected to login.
-
-
-2. How do I authenticate to my nickname?
-
-You should enable SASL in your client. 
-
-
- - If your client doesn't support SASL, then update to a good client!
- - Alternatively, you can use the "PASS" method
-
-3. What are the benefits of registering my nickname?
-
-The primary benefit of nickname registration is that the server can act
-as an "IRC bouncer" on your behalf. Specifically:
-
-  a. No one else will be able to use your nickname
-  b. If all your clients are configured to use SASL, they can all use the same
-     nickname (as though they were connected to the same ZNC instance)
-  c. Optionally, the server can keep you present on the server even if
-     you have no connected clients. To enable this, use the following command:
-     `/msg NickServ set always-on true`
-  d. You will be able to receive history playback.
-
-
-For more information checkout the UserGuide and
-the Manual.
-
-
-
-
-
- - diff --git a/matrix.html b/matrix.html deleted file mode 100644 index 2751d37..0000000 --- a/matrix.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - -LibertaCasa - - - -
-┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
-│    │  │─│ │─  │┬┘  │  │─┤
-┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
-
-┌─┐ ┬─┐ ┐─┐ ┬─┐
-│   │─┤ └─┐ │─┤
-└─┘ ┘ │ ──┘ ┘ │
-
-

Matrix

-
-What's Matrix (official Website)
-
-Connection Details:
-===================
-
-The only fully featured Matrix client is Element. Our instance is available at https://element.liberta.casa.
-
-After having created an account in Element, it is possible to connect other Matrix clients using the Homeserver address matrix.liberta.casa.
-
-
-
-
-
-
-
-
-
-
-
-
-
- - diff --git a/sso.html b/sso.html deleted file mode 100644 index 0241e1d..0000000 --- a/sso.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - -LibertaCasa - git - - - -
-┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
-│    │  │─│ │─  │┬┘  │  │─┤
-┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
-
-┌─┐ ┬─┐ ┐─┐ ┬─┐
-│   │─┤ └─┐ │─┤
-└─┘ ┘ │ ──┘ ┘ │
-
- -

Single Sign On

-
-   

With a growing list of services, it becomes apparent that multiple logins aren't LUSER friendly. - This is being attempted to be resolved by a Single Sign On system. It is a work in progress with many services already having been integrated. - These are currently: IRC (opt-in), XMPP, Gitea, Etherpad, Confluence.

- - Registering for SSO - ===================== - - 1. Click here and then click on the "Manage" button. - 2. Fill up the fields and ensure the email is valid as it shall recieve a confirmation link. - 3. Click the "Register" link to complete the procedure and recieve the confirmation email. - 3. Once you Verify your account you can log into the sso-enabled services using the same credentials. - - - - - - - -
- - \ No newline at end of file diff --git a/static/git.html b/static/git.html new file mode 100644 index 0000000..62c2608 --- /dev/null +++ b/static/git.html @@ -0,0 +1,44 @@ + + + + + + +LibertaCasa - git + + + +
+┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
+│    │  │─│ │─  │┬┘  │  │─┤
+┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
+
+┌─┐ ┬─┐ ┐─┐ ┬─┐
+│   │─┤ └─┐ │─┤
+└─┘ ┘ │ ──┘ ┘ │
+
+

Git

+
+
+

What's Git (official website)

+ +> We aim to publish all relevant infrastructure and configuration details to our community in a way that not only allows for easy access, but also allows for uncomplicated contributions. +> We chose to use a self-hosted Git server to achieve this. Full repository access is possible through Gitea (https://git.com.de), there you may register for your own account, browse, contribute, and, if desired, also publish your own repositories. +> For a quick-glance at only LibertaCasa specific repositories we employ a cgit instance on https://git.casa - if you only want to look, without editing anything, this is the perfect place to go, as it is blazing fast and easy to navigate. + + + + + + + + + + + + +
+ + diff --git a/static/i2p.html b/static/i2p.html new file mode 100644 index 0000000..14803d6 --- /dev/null +++ b/static/i2p.html @@ -0,0 +1,68 @@ + + + + + + I2p Setup Guide + + +
+┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
+│    │  │─│ │─  │┬┘  │  │─┤
+┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
+
+┌─┐ ┬─┐ ┐─┐ ┬─┐
+│   │─┤ └─┐ │─┤
+└─┘ ┘ │ ──┘ ┘ │
+
+

i2pd

+
Installation
+
+Whilst connections with the regular I2P client are possible as well, we currently only provide instructions for I2Pd.
+Instructions for installing a distrubtion package for I2Pd or for compiling it from source can be found in its official documentation:
+ Distribution Packages and Building from Source 
+
+Distribution Packages should ideally create a "role user and a group"
+as well as provide an `i2pd.service` unit file to use with systemd where available.
+If you built the application from source, you might need to create these manually.
+
+
Configuration for LibertaCasa IRC
+After installing I2Pd, edit or create the file /etc/i2pd/tunnels.conf. +You might need to do this as root (i.e. sudo nano /etc/i2pd/tunnels.conf). +Add the following section to the top of the file: + + [IRC-LibertaCasa] + type = client + address = 127.0.0.3 + port = 6648 + destination = fzsgc66e52ve5phrcktrekqtko423ihau42u72v4cfg6bg4osuda.b32.i2p + destinationport = 6667 + +Start and enable the I2Pd service: + + sudo systemctl enable --now i2pd.service + +You should now be able to connect your IRC client with the following settings: + + IP address / Hostname: 127.0.0.3 + Port: 6648 + SSL/TLS: Off/Disabled + +Nickname, Username and SASL password are the regular details you would use for connecting to LibertaCasa. + + + + + + + + + + + + +
+ + diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..e12b5c3 --- /dev/null +++ b/static/index.html @@ -0,0 +1,108 @@ + + + + + + +LibertaCasa + + + +
+
+┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
+│    │  │─│ │─  │┬┘  │  │─┤
+┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
+
+┌─┐ ┬─┐ ┐─┐ ┬─┐
+│   │─┤ └─┐ │─┤
+└─┘ ┘ │ ──┘ ┘ │
+
+
+A community with multiple interconnected services which provides a safe space for the discussion and dissemination
+of various topics under the umbrella of Science, Philosophy, Politics and a general place to hang back and idle away.
+
+
+There is a focus on supporting FOSS protocols.
+
+
+You can also visit us over The Onion Routing protocol at our onion address.
+
+Donts:
+======
+
+    -Repeated harassment of any network user.
+    -Distribution of child pornography.
+    -Dealing of goods and using the network as a space for commericial operations.
+    -Any denial of service against the network or its users.
+    -Use of our network resources or services for malicious intent.
+    -Connecting to the network for any reason using a compromised machine, including as a proxy or loading trojans or bots.
+    -Unwanted advertisement of websites, IRC network, or channels (also known as spamming).
+    -Evading bans, either those placed by network staff or by individual channels.
+    -Impersonation of network staff or services.
+    -Connecting through open proxies.
+    -Any other behavior deemed inappropriate by network staff.
+
+
+Services (Clearnet):
+===================
+
+Communications:
+--------------
+
+IRC | XMPP | Matrix | Jitsi Video Conferencing 
+
+Search Engines:
+--------------
+
+SearX | YaCy
+
+Others:
+------
+
+Private Bin | Gitea | Cytube - Watch together
+
+
+Services (Tor):
+==============
+
+Communications:
+--------------
+
+IRC
+
+Search Engines:
+--------------
+
+SearX | YaCy
+
+
+Services (I2P):
+==============
+
+Communications:
+--------------
+
+IRC
+
+
+Contribute:
+==========
+Check our /git info page or head directly to the main repository.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/static/irc.html b/static/irc.html new file mode 100644 index 0000000..5babe9c --- /dev/null +++ b/static/irc.html @@ -0,0 +1,106 @@ + + + + + + +LibertaCasa + + + +
+┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
+│    │  │─│ │─  │┬┘  │  │─┤
+┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
+
+┌─┐ ┬─┐ ┐─┐ ┬─┐
+│   │─┤ └─┐ │─┤
+└─┘ ┘ │ ──┘ ┘ │
+
+ +

IRC

+
+
+Registration
+
+KiwiIRC Webchat | Gamja Webchat | Convos Webchat/Bouncer
+
+
+Connection Details:
+===================
+
+Hostnames are cryptographically cloaked so that your IP address information is not visible to others.
+It is still visible to server administrators.
+To connect configure your IRC client as follows:
+
+Host:       irc.liberta.casa
+Port:       6697
+SSL/TLS:    True
+
+
+If you would like to anonymize the connection against the administrators,
+you can access the network via
+1. TOR:
+
+   Host:     cr36xbvmgjwnfw4sly4kuc6c3ozhesjre3y5pggq5xdkkmbrq6dz4fad.onion
+   Port:     6667
+   SSL/TLS:  False
+
+Webchat via Tor is available through the links on the top - KiwiIRC will offer the best experience.
+
+2. I2P
+
+  Guide to setting up i2p here
+
+  Use the samle configuration shown above.
+  Destination: fzsgc66e52ve5phrcktrekqtko423ihau42u72v4cfg6bg4osuda.b32.i2p
+  Port:        6668
+  SSL/TLS:     False
+
+Account registration FAQ
+========================
+
+1. How do I register my nickname / account?
+
+Use this command, substituting your desired password:
+
+  /msg NickServ register mySecretPassword
+
+You can also register on this page here
+
+Once you register your nick it becomes your account name. It is the name with which you are expected to login.
+
+
+2. How do I authenticate to my nickname?
+
+You should enable SASL in your client. 
+
+
+ - If your client doesn't support SASL, then update to a good client!
+ - Alternatively, you can use the "PASS" method
+
+3. What are the benefits of registering my nickname?
+
+The primary benefit of nickname registration is that the server can act
+as an "IRC bouncer" on your behalf. Specifically:
+
+  a. No one else will be able to use your nickname
+  b. If all your clients are configured to use SASL, they can all use the same
+     nickname (as though they were connected to the same ZNC instance)
+  c. Optionally, the server can keep you present on the server even if
+     you have no connected clients. To enable this, use the following command:
+     `/msg NickServ set always-on true`
+  d. You will be able to receive history playback.
+
+
+For more information checkout the UserGuide and
+the Manual.
+
+
+
+
+
+ + diff --git a/static/matrix.html b/static/matrix.html new file mode 100644 index 0000000..2751d37 --- /dev/null +++ b/static/matrix.html @@ -0,0 +1,46 @@ + + + + + + +LibertaCasa + + + +
+┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
+│    │  │─│ │─  │┬┘  │  │─┤
+┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
+
+┌─┐ ┬─┐ ┐─┐ ┬─┐
+│   │─┤ └─┐ │─┤
+└─┘ ┘ │ ──┘ ┘ │
+
+

Matrix

+
+What's Matrix (official Website)
+
+Connection Details:
+===================
+
+The only fully featured Matrix client is Element. Our instance is available at https://element.liberta.casa.
+
+After having created an account in Element, it is possible to connect other Matrix clients using the Homeserver address matrix.liberta.casa.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/static/sso.html b/static/sso.html new file mode 100644 index 0000000..0241e1d --- /dev/null +++ b/static/sso.html @@ -0,0 +1,45 @@ + + + + + + +LibertaCasa - git + + + +
+┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
+│    │  │─│ │─  │┬┘  │  │─┤
+┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
+
+┌─┐ ┬─┐ ┐─┐ ┬─┐
+│   │─┤ └─┐ │─┤
+└─┘ ┘ │ ──┘ ┘ │
+
+ +

Single Sign On

+
+   

With a growing list of services, it becomes apparent that multiple logins aren't LUSER friendly. + This is being attempted to be resolved by a Single Sign On system. It is a work in progress with many services already having been integrated. + These are currently: IRC (opt-in), XMPP, Gitea, Etherpad, Confluence.

+ + Registering for SSO + ===================== + + 1. Click here and then click on the "Manage" button. + 2. Fill up the fields and ensure the email is valid as it shall recieve a confirmation link. + 3. Click the "Register" link to complete the procedure and recieve the confirmation email. + 3. Once you Verify your account you can log into the sso-enabled services using the same credentials. + + + + + + + +
+ + \ No newline at end of file diff --git a/static/styles.css b/static/styles.css new file mode 100644 index 0000000..489bd8c --- /dev/null +++ b/static/styles.css @@ -0,0 +1,17 @@ +body { + background-color: black; + color: white; +} + +a { + text-decoration: none; + color: green; +} + +a:hover { + background-color: rgb(130, 100, 185); +} + +footer { + color: green; +} \ No newline at end of file diff --git a/static/xmpp.html b/static/xmpp.html new file mode 100644 index 0000000..02276c9 --- /dev/null +++ b/static/xmpp.html @@ -0,0 +1,61 @@ + + + + + + +LibertaCasa - xmpp + + + +
+┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
+│    │  │─│ │─  │┬┘  │  │─┤
+┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
+
+┌─┐ ┬─┐ ┐─┐ ┬─┐
+│   │─┤ └─┐ │─┤
+└─┘ ┘ │ ──┘ ┘ │
+
+

XMPP

+
+

What's XMPP (official website)

+XMPP FAQs (more) + +

Overview: XMPP is the Extensible Messaging and Presence Protocol, a set of open technologies for instant messaging, presence, multi-party chat, voice and video calls, collaboration, lightweight middleware, content syndication, and generalized routing of XML data.

+ + +There are quite a few clients available. You can check the overview here. + +You can use our XMPP server and federate to others by using your LibertaCasa SSO credentials. + +JID: username@liberta.casa +Password: your SSO password + +Currently, you can use any XMPP/Jabber client to connect to the following server: + +Host: xmpp.liberta.casa +Port: 5222 +TLS/SSL: Enforced + +Installing a desktop client, i.e. Dino or Gajim is recommended. Mobile client in the form of Android, i.e. Conversations, or iOS, i.e. Siskin, clients are viable options as well. + +Alternatively, you can use the Converse.JS or Candy webchat, however keep in mind that those are both highly experimental services, making for an extremely rudimentary experience with no guaranteed functionality. + +


+ + + + + + + + + + + +
+ + diff --git a/styles.css b/styles.css deleted file mode 100644 index 489bd8c..0000000 --- a/styles.css +++ /dev/null @@ -1,17 +0,0 @@ -body { - background-color: black; - color: white; -} - -a { - text-decoration: none; - color: green; -} - -a:hover { - background-color: rgb(130, 100, 185); -} - -footer { - color: green; -} \ No newline at end of file diff --git a/xmpp.html b/xmpp.html deleted file mode 100644 index 02276c9..0000000 --- a/xmpp.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - -LibertaCasa - xmpp - - - -
-┬   ┌┬┐ ┬─┐ ┬─┐ ┬─┐ ┌┐┐ ┬─┐
-│    │  │─│ │─  │┬┘  │  │─┤
-┘─┘ └┴┘ │─┘ ┴─┘ │└┘  ┘  ┘ │
-
-┌─┐ ┬─┐ ┐─┐ ┬─┐
-│   │─┤ └─┐ │─┤
-└─┘ ┘ │ ──┘ ┘ │
-
-

XMPP

-
-

What's XMPP (official website)

-XMPP FAQs (more) - -

Overview: XMPP is the Extensible Messaging and Presence Protocol, a set of open technologies for instant messaging, presence, multi-party chat, voice and video calls, collaboration, lightweight middleware, content syndication, and generalized routing of XML data.

- - -There are quite a few clients available. You can check the overview here. - -You can use our XMPP server and federate to others by using your LibertaCasa SSO credentials. - -JID: username@liberta.casa -Password: your SSO password - -Currently, you can use any XMPP/Jabber client to connect to the following server: - -Host: xmpp.liberta.casa -Port: 5222 -TLS/SSL: Enforced - -Installing a desktop client, i.e. Dino or Gajim is recommended. Mobile client in the form of Android, i.e. Conversations, or iOS, i.e. Siskin, clients are viable options as well. - -Alternatively, you can use the Converse.JS or Candy webchat, however keep in mind that those are both highly experimental services, making for an extremely rudimentary experience with no guaranteed functionality. - -


- - - - - - - - - - - -
- - -- cgit v1.2.3