configs/README.md

57 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2022-07-04 13:18:53 -04:00
# configs
2022-01-23 21:43:00 -05:00
2022-07-04 13:18:53 -04:00
Configuration through [Ansible](https://ansible.com) for my development environment(s). Commonly used on Fedora Linux 35 (Workstation Edition), sometimes using [Nix](https://nixos.org).
2022-01-23 21:43:00 -05:00
2022-07-02 12:02:10 -04:00
Clone & execute the main playbook locally: `ansible-playbook run.yml -K`
2022-01-23 21:43:00 -05:00
2022-07-02 12:02:10 -04:00
```bash
sudo setenforce 0
2022-07-04 13:18:53 -04:00
sudo dnf install -y --refresh ansible
./ensure.sh
2022-07-02 12:02:10 -04:00
```
2022-01-30 17:55:18 -05:00
- Run usual updates: `ansible-playbook update.yml -K`
2022-01-28 15:12:41 -05:00
## Contributing
2022-07-04 13:18:53 -04:00
- Packages: `ansible`, `ansible-lint`
2022-01-28 15:12:41 -05:00
- `git config core.hooksPath .git-hooks`
2022-01-28 12:46:51 -05:00
2022-07-02 12:02:10 -04:00
TODO(earne): Remove this/ update
2022-07-04 13:18:53 -04:00
## After First Run
2022-01-28 12:46:51 -05:00
2022-01-28 15:12:41 -05:00
- Dotfiles
2022-07-04 13:18:53 -04:00
- Secrets (GPG, wakatime)
- Generate SSH key and add to services
- Tailscale (`sudo tailscale up --ssh`)
2022-07-04 13:35:09 -04:00
- 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;
}
}
```