wow, you can actually run this now!
This commit is contained in:
parent
05f517b3be
commit
f77c8f528d
|
@ -13,3 +13,34 @@ cd
|
|||
# Clone the egalaxyd repository
|
||||
git clone --depth 1 --branch 0.4.4 https://git.sr.ht/~slondr/egalaxyd egalaxyd
|
||||
cd egalaxyd
|
||||
|
||||
export MIX_ENV=prod
|
||||
|
||||
# Ensure we have hex installed (to pull dependencies)
|
||||
mix local.hex --force
|
||||
|
||||
# Install dependencies
|
||||
mix deps.get
|
||||
|
||||
# Compile the application so it is ready to
|
||||
mix release
|
||||
|
||||
# By default the above command will produce a runnable script in the _build directory. However, that script can be
|
||||
# unwieldy to run as it's both (a) in a deeply-nested subdirectory and (b) dependent on files from the toplevel
|
||||
# existing in the working directory. To make this less cumbersome, we extract the tarball into ~ and copy over the
|
||||
# relevant files.
|
||||
cd ~
|
||||
cp egalaxyd/_build/prod/egalaxyd-0.4.4.tar.gz ./
|
||||
gunzip egalaxyd-0.4.4.tar.gz
|
||||
tar -xf egalaxyd-0.4.4.tar
|
||||
|
||||
# egalaxyd excepts a private key named (by default) "server.key" and a certificate named "server.crt"
|
||||
printf "TODO: Come up with a way for like, users to customize SSL settings easily\n" 1>&2
|
||||
apk add openssl
|
||||
openssl genrsa -out server.key 2048 # private key
|
||||
openssl req -new -key server.key -out server.csr -subj '/C=SU/ST=FakeLocation/CN=mydomain.example.com' # sign req
|
||||
openssl x509 -req -days 7 -in server.csr -signkey server.key -out server.crt
|
||||
|
||||
# Copy over the default Toml configuration file from the git source. Ideally this would have been part of the
|
||||
# tarball, but that is WIP at the moment
|
||||
cp egalaxyd/geminex.toml ./
|
||||
|
|
Loading…
Reference in New Issue