You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+72-5Lines changed: 72 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,8 @@ Now looking back, I also put the 3\* and below servants in their own slice as we
191
191
- Frontend -> Vercel
192
192
- Database + Server -> baremetal Linux VPS
193
193
194
+
### As a process on baremetal
195
+
194
196
To deploy, the following steps I took were:
195
197
196
198
Get the API server running and listening on `localhost:8080`
@@ -204,6 +206,11 @@ Get the API server running and listening on `localhost:8080`
204
206
7. Start `tmux`
205
207
8. Run the server `./server`
206
208
209
+
### As Docker container on baremetal
210
+
211
+
1. Install Docker on the Linux server \[[Debian](https://docs.docker.com/engine/install/debian/) | [RHEL](https://docs.docker.com/engine/install/rhel/)\]
212
+
2. Run `docker run -dp 8080:8080 ghcr.io/aaanh/reroll.ing/server:latest`[or the versions you need](https://github.com/aaanh/reroll.ing/pkgs/container/reroll.ing%2Fserver)
213
+
207
214
Networking
208
215
209
216
1. Add the server's static IP to DNS A record on Cloudflare
@@ -212,11 +219,71 @@ Networking
212
219
213
220
```nginx
214
221
server {
215
-
server_name _; // catch all
216
-
217
-
location / {
218
-
proxy_pass http://localhost:8080
219
-
}
222
+
223
+
if ($host != api.reroll.ing) {
224
+
return 444;
225
+
}
226
+
227
+
# Add index.php to the list if you are using PHP
228
+
# index index.html index.htm index.nginx-debian.html;
0 commit comments