key copy script
This commit is contained in:
parent
e7230f0ec9
commit
eca32f0507
|
@ -1,2 +1,2 @@
|
||||||
target
|
target
|
||||||
/secret.key
|
secret.key
|
||||||
|
|
|
@ -12,9 +12,10 @@ If you do not meet the prerequisities, you are very unlikely to properly run thi
|
||||||
|
|
||||||
1. Clone the repo and cd to its directory
|
1. Clone the repo and cd to its directory
|
||||||
2. Generate a 1024 bytes long key: `head -c 1024 /dev/random > secret.key`
|
2. Generate a 1024 bytes long key: `head -c 1024 /dev/random > secret.key`
|
||||||
3. Put your server URL in `client/src/main.rs` on 4th line.
|
3. Copy it to the directories using `key-copy.sh`
|
||||||
4. Install the client binary on your PC or laptop and set up a cron job to execute it once a minute.
|
4. Put your server URL in `client/src/main.rs` on 4th line.
|
||||||
5. Copy the `secret.key` to your server and `docker-compose up -d` it. Then pass it via the reverse proxy to whereever you want.
|
5. Install the client binary on your PC or laptop and set up a cron job to execute it once a minute.
|
||||||
|
6. Copy the `secret.key` to your server and `docker-compose up -d` it. Then pass it via the reverse proxy to whereever you want.
|
||||||
|
|
||||||
## Embeding the gif
|
## Embeding the gif
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
rm -fr server/src/secret.key client/src/secret.key
|
||||||
|
|
||||||
|
cp secret.key server/src/secret.key
|
||||||
|
cp secret.key client/src/secret.key
|
Loading…
Reference in New Issue