Commit b01d9e06 authored by Banks Nussman's avatar Banks Nussman

more

parent f5a28bcb
......@@ -9,6 +9,12 @@ This VM runs the Ubiquiti Unifi Controller for managing the
- Unifi AC Pro
- Unifi US-8 Switch
### Ports
| Ports |
|-------|
| 8443 |
### Notes
The installer requires you have some ammmount of RAM so when this VM is created,
......
......@@ -8,6 +8,13 @@ slug: /192.168.1.111
This VM runs the Ubiquiti UNMS for managing the
- Unifi Edgerouter X
### Ports
| Ports |
|-------|
| 80 |
| 443 |
### Notes
The installer requires you have some ammmount of RAM so when this VM is created,
......
......@@ -8,6 +8,12 @@ slug: /192.168.1.112
This VM runs Homebridge to allow us to access non-HomeKit devices in the
Apple Home app on our local network.
### Ports
| Ports |
|-------|
| 8581 |
### Credentials
Username
......@@ -23,6 +29,30 @@ Password
## Installation
Installation instructions can be found [here](https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Debian-or-Ubuntu-Linux) on the Homebridge wiki.
1. Install pre-requisets
```
# setup repo
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
# install Node.js
sudo apt-get install -y nodejs gcc g++ make python net-tools
# test node is working
node -v
```
2. Install Homebridge
```
sudo npm install -g --unsafe-perm homebridge homebridge-config-ui-x
```
3. Run on boot in background
```
sudo hb-service install --user homebridge
```
## Service
Runs in background as a Node.js process
---
title: Ubuntu-Nginx
slug: /192.168.1.113
---
## About
This VM runs Nginx as our edge reverse proxy. All traffic flows through this before it hits other VMs when
requests are made from outside of our network.
### Ports
| Ports |
|-------|
| 80 |
## Hostname and IP Address
- 192.168.1.113
- [nginx.nussman.us](http://nginx.nussman.us)
## Installation
```
sudo apt-get install nginx
```
## Service
This runs as a service called **nginx**
Start
```
sudo service nginx start
```
Stop
```
sudo service nginx stop
```
Restart
```
sudo service nginx restart
```
Status
```
sudo service nginx status
```
## Config
Updated April 1st 2021
```
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
multi_accept on;
}
http {
include mime.types;
server {
listen 80;
server_name nussman.us;
gzip on;
proxy_intercept_errors on;
location / {
root /usr/share/nginx/html/nussman;
index index.html;
}
}
server {
listen 80;
server_name gitlab.nussman.us;
gzip on;
location / {
#proxy_pass https://192.168.1.120;
proxy_pass https://192.168.1.128;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Url-Scheme $scheme;
}
}
server {
listen 80;
server_name ridebeep.app;
gzip on;
location /v1/ {
proxy_pass https://beep-app-beep-api-v3.192.168.1.230.nip.io/;
#proxy_pass https://beep-app-beep-api-v3-staging.192.168.1.200.nip.io/;
}
location /api/ {
proxy_pass https://beep-app-beep-api-v3.192.168.1.230.nip.io/;
#proxy_pass https://beep-app-beep-api-v3-staging.192.168.1.200.nip.io/;
}
location /socket.io/ {
proxy_pass https://beep-app-beep-socket.192.168.1.230.nip.io;
#proxy_pass https://beep-app-beep-socket-staging.192.168.1.200.nip.io;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 2d;
proxy_socket_keepalive on;
}
location / {
root /usr/share/nginx/html/Beep-Website/build;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}
server {
listen 80;
server_name dev.ridebeep.app;
gzip on;
location /api/ {
proxy_pass https://beep-app-beep-api-v3-staging.192.168.1.200.nip.io/;
}
location /v1/ {
proxy_pass https://beep-app-beep-api-v3-staging.192.168.1.200.nip.io/;
}
location /socket.io/ {
proxy_pass https://beep-app-beep-socket-staging.192.168.1.200.nip.io;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 2d;
proxy_socket_keepalive on;
}
}
server {
listen 80;
server_name sentry.nussman.us;
proxy_intercept_errors on;
gzip on;
client_max_body_size 100M;
add_header Access-Control-Allow-Origin *;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With' always;
location / {
proxy_pass http://192.168.1.124:9000;
}
}
server {
listen 80;
server_name grafana.nussman.us;
gzip on;
location / {
proxy_pass http://192.168.1.115:3000;
}
}
server {
listen 80;
server_name capstone.ridebeep.app;
gzip on;
location /guacamole/ {
proxy_pass http://192.168.1.130:8080/guacamole/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
access_log off;
}
}
server {
listen 80;
server_name ashley.ridebeep.app;
location / {
proxy_pass http://192.168.1.133:8080/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;
}
location /absproxy {
proxy_pass http://192.168.1.133:8080/absproxy;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
}
server {
listen 80;
server_name caleb.ridebeep.app;
location / {
proxy_pass http://192.168.1.132:8080/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;
}
location /absproxy {
proxy_pass http://192.168.1.132:8080/absproxy;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
}
}
```
This diff is collapsed.
......@@ -14,6 +14,8 @@ module.exports = {
'192.168.1.110',
'192.168.1.111',
'192.168.1.112',
'192.168.1.113',
'192.168.1.115',
],
},
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment