code-server + https tailscale instructions
parent
e4b9b05fc4
commit
a40ac99ed0
28
README.md
28
README.md
|
@ -26,3 +26,31 @@ TODO(earne): Remove this/ update
|
||||||
- Generate SSH key and add to services
|
- Generate SSH key and add to services
|
||||||
- Tailscale (`sudo tailscale up --ssh`)
|
- Tailscale (`sudo tailscale up --ssh`)
|
||||||
- Restart!
|
- Restart!
|
||||||
|
|
||||||
|
If code-server:
|
||||||
|
|
||||||
|
- Install `https://github.com/coder/code-server/releases/download/v4.5.0/code-server-4.5.0-amd64.rpm`
|
||||||
|
- Config file: [like this](https://tailscale.com/kb/1166/vscode-ipad/#step-3-make-code-server-available-on-the-tailscale-interface)
|
||||||
|
- `usysctl enable --now code-server`
|
||||||
|
- `sudo tailscale cert ...`
|
||||||
|
- nginx proxy!
|
||||||
|
- `sudo firewall-cmd --add-port=443/tcp ; sudo firewall-cmd --runtime-to-permanent`
|
||||||
|
|
||||||
|
```
|
||||||
|
server {
|
||||||
|
server_name .ts.net;
|
||||||
|
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
ssl_certificate /etc/.crt;
|
||||||
|
ssl_certificate_key /etc/.key;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://100.111.117.54:8080/;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection upgrade;
|
||||||
|
proxy_set_header Accept-Encoding gzip;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue