diff options
| author | Fuwn <[email protected]> | 2022-07-17 04:24:44 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-07-17 04:24:44 -0700 |
| commit | 7d7ae1ef5eec0aa41acaafe6c639d899b23fc006 (patch) | |
| tree | b9d89b9661e4cb26bc90ce0fa838e9ed98fd9f57 | |
| parent | fix: copyright dates (diff) | |
| download | gem.rest-7d7ae1ef5eec0aa41acaafe6c639d899b23fc006.tar.xz gem.rest-7d7ae1ef5eec0aa41acaafe6c639d899b23fc006.zip | |
fix: casing
| -rw-r--r-- | guides/how_to_host_multiple_gemini_capsules_on_one_vps.gmi | 32 | ||||
| -rw-r--r-- | guides/index.gmi | 8 | ||||
| -rw-r--r-- | index.gmi | 8 |
3 files changed, 24 insertions, 24 deletions
diff --git a/guides/how_to_host_multiple_gemini_capsules_on_one_vps.gmi b/guides/how_to_host_multiple_gemini_capsules_on_one_vps.gmi index ee4a157..1cddb2d 100644 --- a/guides/how_to_host_multiple_gemini_capsules_on_one_vps.gmi +++ b/guides/how_to_host_multiple_gemini_capsules_on_one_vps.gmi @@ -6,18 +6,18 @@ \____/\___/_/ /_/ /_/_/ |_|\___/____/\__/ ``` -# HOW TO HOST MULTIPLE GEMINI CAPSULES ON ONE VPS +# How to Host Multiple Gemini Capsules on One VPS -## QUICK LINKS +## Quick Links => https://github.com/gemrest GitHub => /guides/index.gmi Guides -## PROBLEM +## Problem I want host multiple Gemini capsules on one VPS but it's not working because the port (1965) is already occupied! -## SOLUTION +## Solution DISCLAIMER: The following guide will be aimed towards Debian based operating systems! If you would like to see other operating systems supported, please make a contribution over at the GemRest Gemini capsule repository on GitHub. @@ -28,7 +28,7 @@ DISCLAIMER: The following guide takes a lot of inspiration for Luke Smith's Land => https://lukesmith.xyz/ Luke Smith => https://landchad.net/ LandChat.net -### 0. LOGGING (SSH-ING) INTO THE VPS +### 0. Logging (SSH-ing) into the VPS The first thing we need to get started is to be SSH'd into our VPS, this will allow us to take control of the VPS's command-line remotely. @@ -46,7 +46,7 @@ You should now be prompted to enter the password for your user on your VPS, if y NOTE: This section (0) does not cover logging into our VPS with an SSH key, if you are required to login with an SSH key; there should be a help section or guide on your VPS provider's web panel detailing how to login with an SSH key. -### 1. INSTALLING A WEB-SERVER (NGINX) FOR REVERSE-PROXYING +### 1. Installing a Web-server (nginx) for Reverse-proxying We now need to update our VPS and install the web-server (NGINX). @@ -56,26 +56,26 @@ $ sudo apt upgrade # Install any updates $ sudo apt install nginx # Install the web-server ``` -### 2. CONFIGURING THE GEMINI SERVER +### 2. Configuring the Gemini Server -We now need to configure our Gemini server to work with our web-server (NGINX). +We now need to configure our Gemini server to work with our web-server (nginx). 1. Locate your first Gemini server's configuration file/ web panel/ et certera 2. Change your first Gemini server's port from "1965" to anything else, I recommend 1966 3. Locate your second Gemini server's configuration file/ web panel/ et certera 4. Change your second Gemini server's port from "1965" to anything else, I recommend 1967 -### 3. CONFIGURING THE WEB-SERVER (NGINX) +### 3. Configuring the Web-server (nginx) -We now need to inform the web-server (NGINX) of which port our Gemini server is occupying (localhost) and allow the web-server (NGINX) to redirect all incoming traffic to the right place based on the domain name that our VPS was accessed from. +We now need to inform the web-server (nginx) of which port our Gemini server is occupying (localhost) and allow the web-server (nginx) to redirect all incoming traffic to the right place based on the domain name that our VPS was accessed from. -First, let's navigate into NGINX's configuration directory: +First, let's navigate into nginx's configuration directory: ``` $ cd /etc/nginx ``` -### 3.1. CREATING A DOMAIN MAP +### 3.1. Creating a Domain Map We now need to create a domain map which NGINX will use to decide what content to serve our end-user. @@ -103,7 +103,7 @@ stream { } ``` -### 3.2. IMPLEMENTING THE SERVER LOGIC +### 3.2. Implementing the Server Logic We now need to implement the the server logic that our web-server (NGINX) runs once that domain map forwards the request to the correct domain handler. @@ -132,7 +132,7 @@ stream { } ``` -### 3.3. FINISHING UP +### 3.3. Finishing Up 1. Save and exit the file (vim: ":wq") 2. On the command-line; execute: @@ -141,7 +141,7 @@ stream { $ sudo systemctl restart nginx ``` -### 4. WRAPPING UP +### 4. Wrapping Up That's that! You now should have a working web-server (NGINX) up and running which forwards the correct Gemini capsule to the end-user based on what domain name they access the VPS with! @@ -153,6 +153,6 @@ If you ever need to run any more Gemini capsules on your VPS, follow these guide 2. Add an extra entry to the domain map: Reference section 3.1 3. Add an extra bit of server logic: NOT the "server { ..." bit, just the "..._backend" bit; reference section 3.2 -## FOOTER +## Footer Copyright (C) 2022-2022 GemRest diff --git a/guides/index.gmi b/guides/index.gmi index 9dff75f..f083554 100644 --- a/guides/index.gmi +++ b/guides/index.gmi @@ -6,18 +6,18 @@ \____/\___/_/ /_/ /_/_/ |_|\___/____/\__/ ``` -# GUIDES +# Guides -## QUICK LINKS +## Quick Links => https://github.com/gemrest GitHub => /guides/index.gmi Guides => /projects/index.gmi Projects -## ENTRIES +## Entries => /guides/how_to_host_multiple_gemini_capsules_on_one_vps.gmi How To Host Multiple Gemini Capsules on One VPS -## FOOTER +## Footer Copyright (C) 2022-2022 GemRest @@ -6,17 +6,17 @@ \____/\___/_/ /_/ /_/_/ |_|\___/____/\__/ ``` -# GEM.REST +# GemRest Simple solutions designed for the Gemini protocol. So you can rest easy by letting us handle the hassle. -## QUICK LINKS +## Quick Links => https://github.com/gemrest GitHub => /guides/index.gmi Guides => /projects/index.gmi Projects -## PROJECTS +## Projects => https://github.com/gemrest/september September => https://github.com/gemrest/windmark Windmark @@ -27,6 +27,6 @@ Simple solutions designed for the Gemini protocol. So you can rest easy by letti => https://github.com/gemrest/viv viv => /projects/sydney.gmi Sydney -## FOOTER +## Footer Copyright (C) 2022-2022 GemRest |