summaryrefslogtreecommitdiff
path: root/NOTES.md
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-31 22:05:18 +0100
committerTor Andersson <tor@ccxvii.net>2021-12-31 22:24:47 +0100
commit1f060bf2ef8b3d475b0d37d32bab73e1a601ea11 (patch)
treed8aee9faff64c5690e1a4c3b21e99e6de443fcdb /NOTES.md
parent119675c218c27a33d03ab2f01624486aec6ecdee (diff)
downloadserver-1f060bf2ef8b3d475b0d37d32bab73e1a601ea11.tar.gz
Parameterize site name and domain.
Diffstat (limited to 'NOTES.md')
-rw-r--r--NOTES.md43
1 files changed, 0 insertions, 43 deletions
diff --git a/NOTES.md b/NOTES.md
index 51b622e..b9dd646 100644
--- a/NOTES.md
+++ b/NOTES.md
@@ -1,45 +1,3 @@
-## Setting up the server
-
-All data is stored in an SQLite3 database.
-
-The server and game rules are implemented in Javascript.
-The game state is stored in the database as a JSON blob.
-The server runs on Node with the Express.js and Socket.io frameworks.
-
-Redirect port 80 and 443 to 8080 and 8443:
-
-```
-sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080
-sudo iptables -A PREROUTING -t nat -p tcp --dport 443 -j REDIRECT --to-ports 8443
-```
-
-Create SSL certificate with Let's Encrypt certbot, or self-signed with OpenSSL:
-
-```
-openssl req -nodes -new -x509 -keyout key.pem -out cert.pem
-```
-
-Configure the server using the .env file:
-
-```
-NODE_ENV=production
-
-HTTP_PORT=8080
-
-HTTPS_PORT=8443
-SSL_KEY=/etc/letsencrypt/live/YOUR_DOMAIN/privkey.com
-SSL_CERT=/etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem
-
-MAIL_FROM="Your Site Name <notifications@YOUR_DOMAIN>"
-MAIL_HOST=localhost
-MAIL_PORT=25
-```
-
-If the HTTPS_PORT is missing, the server will only serve HTTP.
-If MAIL_HOST/PORT are not present, the server will not send notification emails.
-
-## Resources
-
Icons are sourced from various places:
* https://game-icons.net/
@@ -58,4 +16,3 @@ Image processing software:
* https://github.com/svg/svgo
* http://optipng.sourceforge.net/
* http://potrace.sourceforge.net/
-