mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
add shadowbox
This commit is contained in:
parent
5f7c1a4688
commit
a9272e4387
@ -428,6 +428,7 @@ A collection of delicious docker recipes.
|
||||
- [x] ansiblesemaphore/semaphore
|
||||
- [x] sentry
|
||||
- [x] atmoz/sftp
|
||||
- [x] quay.io/outline/shadowbox
|
||||
- [x] shlinkio/shlink
|
||||
- [x] snipe/snipe-it
|
||||
- [x] valeriansaliou/sonic
|
||||
|
22
shadowbox/README.md
Normal file
22
shadowbox/README.md
Normal file
@ -0,0 +1,22 @@
|
||||
shadowbox
|
||||
=========
|
||||
|
||||
## up and running
|
||||
|
||||
```bash
|
||||
$ mkdir -p data/{certs,state}
|
||||
$ cd data/certs/
|
||||
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -subj '/CN=localhost' -keyout easypi.key -out easypi.crt
|
||||
$ openssl x509 -in easypi.crt -noout -sha256 -fingerprint | cut -d= -f2 | tr -d :
|
||||
$ docker-compose up -d
|
||||
$ curl -s -k https://127.0.0.1:8081/easypi/access-keys
|
||||
```
|
||||
|
||||
## remote management
|
||||
|
||||
```bash
|
||||
$ ssh -N -L 8081:localhost:8081 remote-server
|
||||
$ open -a 'Outline Manager'
|
||||
```
|
||||
|
||||
API: <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/shadowbox/server/api.yml>
|
4
shadowbox/data/state/remote_access.json
Normal file
4
shadowbox/data/state/remote_access.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"apiUrl": "https://127.0.0.1:8081/easypi",
|
||||
"certSha256": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
||||
}
|
4
shadowbox/data/state/shadowbox_server_config.json
Normal file
4
shadowbox/data/state/shadowbox_server_config.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"hostname": "x.x.x.x",
|
||||
"portForNewAccessKeys": 8443
|
||||
}
|
24
shadowbox/docker-compose.yml
Normal file
24
shadowbox/docker-compose.yml
Normal file
@ -0,0 +1,24 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
shadowbox:
|
||||
image: quay.io/outline/shadowbox:stable
|
||||
ports:
|
||||
- "127.0.0.1:8081:8081/tcp"
|
||||
- "8443:8443/tcp"
|
||||
- "8443:8443/udp"
|
||||
volumes:
|
||||
- ./data/certs:/opt/outline-server/certs
|
||||
- ./data/state:/opt/outline-server/state
|
||||
environment:
|
||||
- LOG_LEVEL=debug
|
||||
- SB_STATE_DIR=/opt/outline-server/state
|
||||
- SB_API_PORT=8081
|
||||
- SB_API_PREFIX=easypi
|
||||
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -subj '/CN=localhost' -keyout easypi.key -out easypi.crt
|
||||
# openssl x509 -in easypi.crt -noout -sha256 -fingerprint | cut -d= -f2 | tr -d :
|
||||
- SB_CERTIFICATE_FILE=/opt/outline-server/certs/easypi.crt
|
||||
- SB_PRIVATE_KEY_FILE=/opt/outline-server/certs/easypi.key
|
||||
- SB_METRICS_URL=
|
||||
- SB_DEFAULT_SERVER_NAME=EasyPi
|
||||
stop_signal: SIGKILL
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user