diff --git a/.obsidian/workspace b/.obsidian/workspace index 5d2355b3..b3c322f8 100644 --- a/.obsidian/workspace +++ b/.obsidian/workspace @@ -9,7 +9,7 @@ "state": { "type": "markdown", "state": { - "file": "Networks/Tools Server.md", + "file": "Networks/Server Tools.md", "mode": "preview" } } @@ -68,7 +68,7 @@ "state": { "type": "backlink", "state": { - "file": "Networks/Tools Server.md", + "file": "Networks/Server Tools.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -99,15 +99,15 @@ }, "active": "c1cbd199334b4022", "lastOpenFiles": [ + "Networks/Server Tools.md", + "Networks/Configuring Caddy.md", + "Networks/VPS Console Dialogue.md", "Networks/Tools Server.md", - "Reading list/@Reading master.md", - "Internet snippets/Mating.md", - "Computer setup/Tutanota.md", - "Computer setup/Privacy & Security.md", - "Computer setup/Email & Communication.md", "Networks/Cloud Server.md", "Networks/Alias Server.md", - "Computer setup/Element.md", - "Computer setup/@Computer Set Up.md" + "Networks/Postfix config.md", + "Networks/Monit config.md", + "Networks/Docker config.md", + "Networks/Caddy config.md" ] } \ No newline at end of file diff --git a/Computer setup/Email & Communication.md b/Computer setup/Email & Communication.md index fa0a8501..6c4f5d56 100644 --- a/Computer setup/Email & Communication.md +++ b/Computer setup/Email & Communication.md @@ -66,7 +66,7 @@ Email account | Email provider | Email client #### Email aliasing -In order to protect email addresses, i have an [[Alias Server|alias manager]], [SimpleLogin](https://simplelogin.io), for managing certain subscriptions. +In order to protect email addresses, i have an [[Server Alias|alias manager]], [SimpleLogin](https://simplelogin.io), for managing certain subscriptions. Below is an oerview of existing aliases: diff --git a/Computer setup/Nextcloud.md b/Computer setup/Nextcloud.md index b10e5113..317ea4b7 100644 --- a/Computer setup/Nextcloud.md +++ b/Computer setup/Nextcloud.md @@ -12,7 +12,7 @@ Product: --- -Parent:: [[Storage and Syncing]], [[Cloud Server]] +Parent:: [[Storage and Syncing]], [[Server Cloud]] --- diff --git a/Computer setup/Privacy & Security.md b/Computer setup/Privacy & Security.md index ca36e091..c1aae9d4 100644 --- a/Computer setup/Privacy & Security.md +++ b/Computer setup/Privacy & Security.md @@ -72,7 +72,7 @@ Securing [[Email & Communication|emails]] take two main forms: 2. Dedicated services embedding encryption and privacy policies such as [[Tutanota]] -In addition, to protect mailboxes online, a email alias provider can be used. [SimpleLogin](https://simplelogin.io), a French tech, allows this easily and gives the option to [[Alias Server|self host]]. +In addition, to protect mailboxes online, a email alias provider can be used. [SimpleLogin](https://simplelogin.io), a French tech, allows this easily and gives the option to [[Server Alias|self host]]. diff --git a/Life Orga/IT & Computer.md b/Life Orga/IT & Computer.md index 45af0e21..f2e74272 100644 --- a/Life Orga/IT & Computer.md +++ b/Life Orga/IT & Computer.md @@ -61,7 +61,7 @@ All tasks and To-dos linked to IT and Computer - [x] Continue building server capabilities ✅ 2021-09-15 - [ ] Find a good (&synced) [[IT & Computer#App dependencies|Calendar]] platform - [x] Set-up [[Nextcloud]] -- [x] Transfer [[Alias Server|aliases]] +- [x] Transfer [[Server Alias|aliases]] - [x] Computer security: set-up [[IT & Computer#Snort|Snort]] ✅ 2021-09-15 - [x] Find a good downloading platform to replace [[IT & Computer#App dependencies|Vuze]] - [x] Find an email Client to replace [[IT & Computer#App dependencies|Spark]] ✅ 2021-09-14 diff --git a/Networks/@Networks.md b/Networks/@Networks.md index 55f184e2..8d6b3ad8 100644 --- a/Networks/@Networks.md +++ b/Networks/@Networks.md @@ -78,16 +78,16 @@ style: number 1. [[Domains]] 2. [[mfxm Website Scope]] 2. [[Selfhosting|Self-hosting]] - 1. [[Alias Server]] - 2. [[Cloud Server]] - 3. [[Tools Server]] + 1. [[Server Alias]] + 2. [[Server Cloud]] + 3. [[Server Tools]] 3. [[mfxm Website Scope#URL Shortening|URL Shortening]] 3. Tools 1. [[VPS Console Dialogue]] - 2. [[Postfix config|Postfix]] - 3. [[Monit config|monit]] - 4. [[Docker config|docker]] - 5. [[Caddy config|caddy]] + 2. [[Configuring Postfix|Postfix]] + 3. [[Configuring Monit|monit]] + 4. [[Configuring Docker|docker]] + 5. [[Configuring Caddy|caddy]] @@ -165,9 +165,9 @@ hide task count ![[Domains#^DomainCost]] ![[mfxm Website Scope#^mfxmWSCost]] -![[Alias Server#^AliasServerCost]] -![[Cloud Server#^CloudServerCost]] -![[Tools Server#^ToolsServerCost]] +![[Server Alias#^AliasServerCost]] +![[Server Cloud#^CloudServerCost]] +![[Server Tools#^ToolsServerCost]] |_**Aggregation**_ | One-off Cost | Subscription p.a. diff --git a/Networks/Caddy config.md b/Networks/Configuring Caddy.md similarity index 86% rename from Networks/Caddy config.md rename to Networks/Configuring Caddy.md index b61b4200..586192c5 100644 --- a/Networks/Caddy config.md +++ b/Networks/Configuring Caddy.md @@ -11,7 +11,7 @@ CollapseMetaTable: Yes --- -Parent:: [[Selfhosting]], [[Tools Server]] +Parent:: [[Selfhosting]], [[Server Tools]] --- @@ -110,6 +110,10 @@ Caddy will fetch a **SSL certificate** for all sub-domains and addresses present +--- + + + #### Caddy configuration file Caddy's configuration file is inder: @@ -129,6 +133,10 @@ Default configuration is: +--- + + + #### PHP configuration file To update php, edit the following file: @@ -148,6 +156,50 @@ Once this is done, restart php: +--- + + + +#### Configuring CORS + + + +##### Preliminary CORS code snippet + +>(cors) { +> @origin{args.0} header Origin {args.0} +> header @origin{args.0} Access-Control-Allow-Origin "{args.0}" +>} + + + +##### CORS for a sub-domain + +> import cors (http://subdomain.tld) +> header Access-Control-Allow-Methods "POST, GET, OPTIONS, PUT" +> header Access-Control-Allow-Headers "*" + + + +--- + + + +#### Configuration of a sub-domain suffix + +Configuration requires to add the following in the sub-domain definition: + +> handle_path /(suffix)\* { +> root * /(path to suffix) +> file_server +> } + + + +--- + + + #### Configuration with the docker network Configuration of a service attached to the docker network is easy: @@ -159,6 +211,10 @@ Configuration of a service attached to the docker network is easy: +--- + + + #### Configuring login with a cookie ```ad-info diff --git a/Networks/Docker config.md b/Networks/Configuring Docker.md similarity index 98% rename from Networks/Docker config.md rename to Networks/Configuring Docker.md index 13d44b0d..7ece24d5 100644 --- a/Networks/Docker config.md +++ b/Networks/Configuring Docker.md @@ -11,7 +11,7 @@ CollapseMetaTable: Yes --- -Parent:: [[Selfhosting]], [[Alias Server]], [[Tools Server]] +Parent:: [[Selfhosting]], [[Server Alias]], [[Server Tools]] --- diff --git a/Networks/Monit config.md b/Networks/Configuring Monit.md similarity index 97% rename from Networks/Monit config.md rename to Networks/Configuring Monit.md index b5a7619b..b9a25395 100644 --- a/Networks/Monit config.md +++ b/Networks/Configuring Monit.md @@ -11,7 +11,7 @@ CollapseMetaTable: Yes --- -Parent:: [[Selfhosting]], [[Cloud Server]], [[Alias Server]], [[Tools Server]] +Parent:: [[Selfhosting]], [[Server Cloud]], [[Server Alias]], [[Server Tools]] --- diff --git a/Networks/Postfix config.md b/Networks/Configuring Postfix.md similarity index 95% rename from Networks/Postfix config.md rename to Networks/Configuring Postfix.md index 4005cc30..8a317fe4 100644 --- a/Networks/Postfix config.md +++ b/Networks/Configuring Postfix.md @@ -11,7 +11,7 @@ CollapseMetaTable: Yes --- -Parent:: [[Selfhosting]], [[Alias Server]], [[Cloud Server]], [[Tools Server]] +Parent:: [[Selfhosting]], [[Server Alias]], [[Server Cloud]], [[Server Tools]] @@ -241,7 +241,7 @@ Ports (25, 465, 587) need to be opened by the firewall: ##### Networks -Definition of permitted networks to restrict access (in [[Postfix config#Main cf|main.cf]]). +Definition of permitted networks to restrict access (in [[Configuring Postfix#Main cf|main.cf]]). @@ -258,7 +258,7 @@ Options are coded in the file by default. Uncheck necessary directives. ##### SSL cert -Postfix SSL certs need to match that of the server (in [[Postfix config#Main cf|main.cf]]). +Postfix SSL certs need to match that of the server (in [[Configuring Postfix#Main cf|main.cf]]). diff --git a/Networks/Domains.md b/Networks/Domains.md index eae59068..9c4b46e6 100644 --- a/Networks/Domains.md +++ b/Networks/Domains.md @@ -57,7 +57,7 @@ style: number |---------------|----------|------------ | **[[@lebv.org\|lebv.org]]** | Email & family archive | family email service; family archive website |
**lebastart.fr**
| Email | Secure email service ([[Tutanota]]) -| **[[mfxm Website Scope\|mfxm.fr]]** | [[Selfhosting\|Self-hosting]] Tools | [[NextCloud]], [[Alias Server\|Email Alias]], [[mfxm Website Scope#URL Shortening\|URL Shortening]] +| **[[mfxm Website Scope\|mfxm.fr]]** | [[Selfhosting\|Self-hosting]] Tools | [[NextCloud]], [[Server Alias\|Email Alias]], [[mfxm Website Scope#URL Shortening\|URL Shortening]] diff --git a/Networks/Selfhosting.md b/Networks/Selfhosting.md index 2805b3cb..b067c40b 100644 --- a/Networks/Selfhosting.md +++ b/Networks/Selfhosting.md @@ -164,7 +164,7 @@ title: Documentation [Nagios](https://nagios.org) ``` -Monitoring is implemented through a free and open-source tool called [[Monit config|monit]]. +Monitoring is implemented through a free and open-source tool called [[Configuring Monit|monit]]. diff --git a/Networks/Alias Server.md b/Networks/Server Alias.md similarity index 92% rename from Networks/Alias Server.md rename to Networks/Server Alias.md index 5782f283..329a856a 100644 --- a/Networks/Alias Server.md +++ b/Networks/Server Alias.md @@ -134,7 +134,7 @@ Potentially, the Docker group needs to be defined: `sudo groupadd docker` ``` -Currently running [[Docker config|docker]] containers +Currently running [[Configuring Docker|docker]] containers ```ad-bug title: sl-network @@ -172,13 +172,13 @@ All documentation in this [link](https://certbot.eff.org). ##### Postfix -Mail Transfer Agent. [[Postfix config|Configuration]] is tailor-made by SimpleLogin to fit their needs. +Mail Transfer Agent. [[Configuring Postfix|Configuration]] is tailor-made by SimpleLogin to fit their needs. #### Server-side Monitoring -Refer to the [[Monit config|monit section]] for further information on installation and configuration. +Refer to the [[Configuring Monit|monit section]] for further information on installation and configuration. List of monitored services: - System @@ -263,8 +263,8 @@ Once the change is made, restart the app container: -- [ ] [[Alias Server]]: Backup server 🔁 every 6 months on the 1st Tuesday 📅 2021-09-15 -- [x] [[Alias Server]]: Backup server 🔁 every 6 months on the 1st Tuesday ✅ 2021-09-14 +- [ ] [[Server Alias]]: Backup server 🔁 every 6 months on the 1st Tuesday 📅 2021-09-15 +- [x] [[Server Alias]]: Backup server 🔁 every 6 months on the 1st Tuesday ✅ 2021-09-14 - [x] Understand why Gmail does not work diff --git a/Networks/Cloud Server.md b/Networks/Server Cloud.md similarity index 96% rename from Networks/Cloud Server.md rename to Networks/Server Cloud.md index edca9d74..41dcc3b1 100644 --- a/Networks/Cloud Server.md +++ b/Networks/Server Cloud.md @@ -180,7 +180,7 @@ In order to restart mysql, the command is: ##### Postfix -Mail Transfer Agent. Configuration is standard to allow for emails to be sent by programs / deamons / [[Nextcloud]] or others. Such a [[Postfix config|system]] is required for every server to work correctly. +Mail Transfer Agent. Configuration is standard to allow for emails to be sent by programs / deamons / [[Nextcloud]] or others. Such a [[Configuring Postfix|system]] is required for every server to work correctly. @@ -223,7 +223,7 @@ Firewall management. #### Server-side monitoring -[Monit](https://mmonit.com/monit/documentation/monit.html) is a process and daemon monitoring tool. More information on operating the software can be found [[Monit config|here]]. +[Monit](https://mmonit.com/monit/documentation/monit.html) is a process and daemon monitoring tool. More information on operating the software can be found [[Configuring Monit|here]]. List of monitored services: - System @@ -376,8 +376,8 @@ title: Nextcloud tutorial -- [ ] [[Cloud Server]]: Backup server 🔁 every 6 months on the 1st Tuesday 📅 2021-09-15 -- [x] [[Cloud Server]]: Backup server 🔁 every 6 months on the 1st Tuesday ✅ 2021-09-14 +- [ ] [[Server Cloud]]: Backup server 🔁 every 6 months on the 1st Tuesday 📅 2021-09-15 +- [x] [[Server Cloud]]: Backup server 🔁 every 6 months on the 1st Tuesday ✅ 2021-09-14 - [x] Set-up landing page diff --git a/Networks/Tools Server.md b/Networks/Server Tools.md similarity index 78% rename from Networks/Tools Server.md rename to Networks/Server Tools.md index 5f6b9480..830e26b0 100644 --- a/Networks/Tools Server.md +++ b/Networks/Server Tools.md @@ -130,7 +130,7 @@ IP: 17.27.37.x ##### Caddy -[[Caddy config|caddy]] is the webserver of choice. Refer to the dedicated note for config and parametrisation. +[[Configuring Caddy|caddy]] is the webserver of choice. Refer to the dedicated note for config and parametrisation. ```ad-bug title: authentication token @@ -167,7 +167,7 @@ With the following parameters: ##### Postfix -Mail Transfer Agent. Configuration is standard to allow for emails to be sent by programs / deamons / [[Nextcloud]] or others. Such a [[Postfix config|system]] is required for every server to work correctly. +Mail Transfer Agent. Configuration is standard to allow for emails to be sent by programs / deamons / [[Nextcloud]] or others. Such a [[Configuring Postfix|system]] is required for every server to work correctly. @@ -198,7 +198,7 @@ JavaScript & JS package manager. | Service | Used value |---------|:---------: | -**Network: [[Docker config\|docker]] dedicated** | 17.27.37.x +**Network: [[Configuring Docker\|docker]] dedicated** | 17.27.37.x **IP: pw-manager** | 17.27.37.3 **IP: Mininote** | 17.27.37.7 **IP: Git** | 172.21.0.3 @@ -252,7 +252,7 @@ The admin panel needs to be set up with an authentication token and is accessed #### Personal notes -[MiniNote](https://github.com/muety/mininote) is a FOSS enabling self-hosting with a server-side encryption. +[StandardNotes](https://standardnotes.com) is a program enabling self-hosting with a server-side encryption. @@ -260,18 +260,54 @@ The admin panel needs to be set up with an authentication token and is accessed ```ad-info title: service parameters -**IP**: 17.27.37.7:3000 -**DockerID**: 73d91d338b533c05a4ad15968efb0470e924f780d016fab13c98f8f1dc3820af -**DockerName**: mininote_mininote_1 +**IP**: 172.22.0.1:2700 +**DockerNames**: api-gateway, auth-worker, syncing-server-js-worker, auth, syncing-server-js, db, cache --- -**Address**: https://notes.mfxm.fr +**Address**: https://st-notes.mfxm.fr ``` +##### Configuration (notes) + +2 files are used to configure the service: + +`~/standalone/.env` + +`~/standalone/docker/auth/.env` + +Docs can be found [here](https://docs.standardnotes.com/self-hosting/docker). + + + ##### User management (notes) -No user management per se. [[Caddy config|Caddy]] provides with a layer of authentication to restrict users to access the full service. +No user management per se. .env file allows (or not) to restrict new registration. + + + +##### StandardNotes extensions + +```ad-info +title: service parameters +**Location**: ~/standardnotes-extensions +**reverse-proxy**: ~/standardnotes-extensions/public +--- +**Address**: https://tools.mfxm.fr/extensions/index.json +``` + + + +StandardNotes has developped extensions to customise both the skin and editor of the app. It is a paying feature normally but can be self-hosted and free. +One GitHub user is offering a [repo](https://github.com/iganeshk/standardnotes-extensions) for extensions that can be cloned and linked to the application. + +* **Configuration file** + +`~/standardnotes-extensions/.env` + +* **Repository update** + +`sudo python3 build_repo.py` In the main folder. @@ -348,7 +384,7 @@ Gitea can work on internal mail points through: #### Server-side Monitoring -Refer to the [[Monit config|monit section]] for further information on installation and configuration. +Refer to the [[Configuring Monit|monit section]] for further information on installation and configuration. List of monitored services: - System @@ -401,7 +437,7 @@ List of monitored services: -- [ ] [[Tools Server]]: Backup server 🔁 every 6 months on the 1st Tuesday +- [ ] [[Server Tools]]: Backup server 🔁 every 6 months on the 1st Tuesday - [x] Set-up landing page diff --git a/Networks/VPS Console Dialogue.md b/Networks/VPS Console Dialogue.md index 3118d05c..11346535 100644 --- a/Networks/VPS Console Dialogue.md +++ b/Networks/VPS Console Dialogue.md @@ -11,7 +11,7 @@ CollapseMetaTable: Yes --- -Parent:: [[Selfhosting]], [[Alias Server]], [[Cloud Server]], [[Tools Server]] +Parent:: [[Selfhosting]], [[Server Alias]], [[Server Cloud]], [[Server Tools]] @@ -389,7 +389,7 @@ title: Change sub-folder permission in a folder #### File transfer -Instructions to use rclone for file transfers can be found [[Cloud Server#Cloud2Cloud|here]]. +Instructions to use rclone for file transfers can be found [[Server Cloud#Cloud2Cloud|here]]. diff --git a/Networks/mfxm Website Scope.md b/Networks/mfxm Website Scope.md index 7747877f..a5328d8a 100644 --- a/Networks/mfxm Website Scope.md +++ b/Networks/mfxm Website Scope.md @@ -86,7 +86,7 @@ title: sub-domain address https://emailalias.mfxm.fr ``` -Server details to be found [[Alias Server|here]] +Server details to be found [[Server Alias|here]] @@ -116,7 +116,7 @@ title: sub-domain address https://cloud.mfxm.fr ``` -Server details to be found [[Cloud Server|here]] +Server details to be found [[Server Cloud|here]] @@ -154,7 +154,7 @@ title: sub-domain address https://pw-manager.mfxm.fr ``` -Server details to be found [[Tools Server#Password manager|here]] +Server details to be found [[Server Tools#Password manager|here]] @@ -168,10 +168,14 @@ Server details to be found [[Tools Server#Password manager|here]] ```ad-bug title: sub-domain address -https://notes.mfxm.fr +https://st-notes.mfxm.fr + +--- +Extensions +https://tools.mfxm.fr/extensions/index.json ``` -Server details to be found [[Tools Server#Personal notes|here]] +Server details to be found [[Server Tools#Personal notes|here]] @@ -188,7 +192,7 @@ title: sub-domain address https://git.mfxm.fr ``` -Server details to be found [[Tools Server#Git repository|here]] +Server details to be found [[Server Tools#Git repository|here]] ```ad-info title: link to repo