Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tobycm/nginx-code-server-router
Routing config and njs for nginx
https://github.com/tobycm/nginx-code-server-router
Last synced: 25 days ago
JSON representation
Routing config and njs for nginx
- Host: GitHub
- URL: https://github.com/tobycm/nginx-code-server-router
- Owner: tobycm
- License: mit
- Created: 2022-12-04T20:51:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T00:50:27.000Z (about 2 years ago)
- Last Synced: 2024-10-28T00:18:18.049Z (2 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NGINX code-server router
## How to install
### Prerequisites
- NGINX (`sudo apt install nginx`)
- Git
- sudo
- Smileys :)### Step 1: Clone this repo:
```bash
git clone https://github.com/tobycm/nginx-code-server-router.git
```### Step 2: Copy files to /etc/nginx
```bash
rm README.md LICENSE.md
cp -r * /etc/nginx/
```### Step 2.5: Add NGINX PPA:
```bash
sudo apt install curl gnupg2 ca-certificates lsb-release debian-archive-keyring
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
| sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/debian `lsb_release -cs` nginx" \
| sudo tee /etc/apt/sources.list.d/nginx.list
sudo apt update
```### Step 3: Install njs for NGINX:
```bash
sudo apt install nginx-module-njs
```### Step 4: Watch [this](https://youtube.com/watch?v=dQw4w9WgXcQ)
### Step 5: Chill
If you have already set [this](https://github.com/tobycm/code-server-instance-manager-nginx/) up, you can run nginx with sudo nginx.