code-server + https tailscale instructions

main
earnest ma 2022-07-06 12:30:32 -04:00
parent e4b9b05fc4
commit a40ac99ed0
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 28 additions and 0 deletions

View File

@ -26,3 +26,31 @@ TODO(earne): Remove this/ update
- Generate SSH key and add to services
- Tailscale (`sudo tailscale up --ssh`)
- 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;
}
}
```