https://github.com/jdgregson/jdgregson-browser-host
Host config for hosts powering browser.jdgregson.com.
https://github.com/jdgregson/jdgregson-browser-host
Last synced: about 1 year ago
JSON representation
Host config for hosts powering browser.jdgregson.com.
- Host: GitHub
- URL: https://github.com/jdgregson/jdgregson-browser-host
- Owner: jdgregson
- Created: 2024-06-02T21:50:33.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-28T02:49:32.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T12:18:57.978Z (over 1 year ago)
- Language: Shell
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jdgregson-browser-host
This repository contains the host configuration for hosts powering browser.jdgregson.com.
## Deployment
### With new Cloudflared token
1. Define your Cloudflared token for the tunnel:
```
CLOUDFLARED_TOKEN="eyJhIjoiYz..."
```
2. Download and execute the setup script:
```
echo $CLOUDFLARED_TOKEN | xargs -I {} sudo bash -c "$(curl -s https://raw.githubusercontent.com/jdgregson/jdgregson-browser-host/master/src/setup.sh)" -- {}
```
### No Cloudflared changes
1. Download and execute the setup script:
```
curl -s https://raw.githubusercontent.com/jdgregson/jdgregson-browser-host/master/src/setup.sh | sudo bash
```
This can also be used to update jdgregson-browser-host on a running system.
### EC2 user-data script
1. Replace `eyJhIjoiY...` with your Cloudflared tunnel token:
```
#!/bin/bash
echo "eyJhIjoiY..." | xargs -I {} sudo bash -c "$(curl -s https://raw.githubusercontent.com/jdgregson/jdgregson-browser-host/master/src/setup.sh)" -- {}
```