From d85d37d75719ab8828854faa1665ed2b78beb598 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 26 Jun 2024 11:11:00 -0300 Subject: [PATCH] Reorg --- README.md | 12 ++---------- provision-pinky/.vscode/settings.json | 3 +++ Dockerfile => reverse_proxy/Dockerfile | 0 LICENSE => reverse_proxy/LICENSE | 0 reverse_proxy/README.md | 17 +++++++++++++++++ .../custom_50x.html | 0 fly.toml => reverse_proxy/fly.toml | 0 nginx.conf => reverse_proxy/nginx.conf | 0 start.sh => reverse_proxy/start.sh | 0 9 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 provision-pinky/.vscode/settings.json rename Dockerfile => reverse_proxy/Dockerfile (100%) rename LICENSE => reverse_proxy/LICENSE (100%) create mode 100644 reverse_proxy/README.md rename custom_50x.html => reverse_proxy/custom_50x.html (100%) rename fly.toml => reverse_proxy/fly.toml (100%) rename nginx.conf => reverse_proxy/nginx.conf (100%) rename start.sh => reverse_proxy/start.sh (100%) diff --git a/README.md b/README.md index 84d817d..ca65503 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,5 @@ How I put my very own personal servers online, for free. -Details at [the blog post](http://ralsina.me/weblog/posts/the-cheapest-server.html) - -When adding a new hostname, remember to create a cert for it using -`flyctl certs create hostname` - -Every 90 days the tailscale auth key will expire and you need to set a new one as -a secret. - -* Create the new one at https://login.tailscale.com/admin/settings/keys (MAKE IT REUSABLE) -* Configure it using flyctl secrets set TAILSCALE_AUTHKEY={{PASTEKEYHERE}} +* The reverse proxy setup is in `reverse_proxy/` +* The ansible playbooks to setup the actual server are in `provision-pinky` diff --git a/provision-pinky/.vscode/settings.json b/provision-pinky/.vscode/settings.json new file mode 100644 index 0000000..77eabe7 --- /dev/null +++ b/provision-pinky/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "ansible.python.interpreterPath": "/usr/bin/python" +} \ No newline at end of file diff --git a/Dockerfile b/reverse_proxy/Dockerfile similarity index 100% rename from Dockerfile rename to reverse_proxy/Dockerfile diff --git a/LICENSE b/reverse_proxy/LICENSE similarity index 100% rename from LICENSE rename to reverse_proxy/LICENSE diff --git a/reverse_proxy/README.md b/reverse_proxy/README.md new file mode 100644 index 0000000..8368381 --- /dev/null +++ b/reverse_proxy/README.md @@ -0,0 +1,17 @@ +# Reverse Proxy setup + +How I put my very own personal servers online, for free. + +This sets up a reverse proxy using nginx on a VM in fly.io using +tailscale to access the internal servers. + +Details at [the blog post](http://ralsina.me/weblog/posts/the-cheapest-server.html) + +When adding a new hostname, remember to create a cert for it using +`flyctl certs create hostname` + +Every 90 days the tailscale auth key will expire and you need to set a new one as +a secret. + +* Create the new one at https://login.tailscale.com/admin/settings/keys (MAKE IT REUSABLE) +* Configure it using flyctl secrets set TAILSCALE_AUTHKEY={{PASTEKEYHERE}} diff --git a/custom_50x.html b/reverse_proxy/custom_50x.html similarity index 100% rename from custom_50x.html rename to reverse_proxy/custom_50x.html diff --git a/fly.toml b/reverse_proxy/fly.toml similarity index 100% rename from fly.toml rename to reverse_proxy/fly.toml diff --git a/nginx.conf b/reverse_proxy/nginx.conf similarity index 100% rename from nginx.conf rename to reverse_proxy/nginx.conf diff --git a/start.sh b/reverse_proxy/start.sh similarity index 100% rename from start.sh rename to reverse_proxy/start.sh