diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-10-11 17:44:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 17:44:22 +0200 |
commit | 23849da8988eb016c769efa78f1323242ac34a97 (patch) | |
tree | b180542b527a7eca0371c0db49cb47e8f4e2544a /docs/development/northstarmasterserver/deploy.md | |
parent | 97665ea7ad1b65a0e6542326b01aca6d116e7fba (diff) | |
download | NorthstarWiki-23849da8988eb016c769efa78f1323242ac34a97.tar.gz NorthstarWiki-23849da8988eb016c769efa78f1323242ac34a97.zip |
Adjust development section folder structure (#235)
* Adjust development section folder structure
The structure of development related pages is a leftover from when
modding and development were combined in a single folder.
Modding related content has since long moved to ModdingDocs.
As such we should update the folder structure accordingly
* Update broken links
Diffstat (limited to 'docs/development/northstarmasterserver/deploy.md')
-rw-r--r-- | docs/development/northstarmasterserver/deploy.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/development/northstarmasterserver/deploy.md b/docs/development/northstarmasterserver/deploy.md new file mode 100644 index 0000000..c384730 --- /dev/null +++ b/docs/development/northstarmasterserver/deploy.md @@ -0,0 +1,27 @@ +# Deploy + +## Development + +A Development Master Server uses http requests, it should be used for development purposes on your local machine. + +### Installation steps + +1. Clone [NorthstarMasterServer](https://github.com/R2Northstar/NorthstarMasterServer). +2. Copy the default [dev.env](https://github.com/R2Northstar/NorthstarMasterServer/blob/main/dev.env) to `.env` replace the ip with `127.0.0.1`. +3. Run `npm install` && `npm run watch`. + +Your master server is now running, to connect to it you need to change some configuration files. + +Northstar default masterserver is https://northstar.tf, to point to a new location you need to modify this URL in the `autoexec_ns_server.cfg` and `autoexec_ns_client.cfg` config files. + +### Enabling HTTPS + +HTTPS should be used if you plan for other people to use your master server. It can be enabled pretty easy with [Caddy](https://caddyserver.com/). Download a Caddy binary and create a `Caddyfile` with the following content: + +``` +{$SHORTDOMAIN:localhost} { + reverse_proxy http://127.0.0.1:8080 +} +``` + +After configuring your DNS domain you can run it with `SHORTDOMAIN=example.com caddy run`. Caddy will automatically generate and maintain your certificates for you, check its documentation for more info: https://caddyserver.com/docs/ |