1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00

add shadowbox

This commit is contained in:
kev 2022-02-22 15:49:36 +08:00
parent 5f7c1a4688
commit a9272e4387
5 changed files with 55 additions and 0 deletions

View File

@ -428,6 +428,7 @@ A collection of delicious docker recipes.
- [x] ansiblesemaphore/semaphore - [x] ansiblesemaphore/semaphore
- [x] sentry - [x] sentry
- [x] atmoz/sftp - [x] atmoz/sftp
- [x] quay.io/outline/shadowbox
- [x] shlinkio/shlink - [x] shlinkio/shlink
- [x] snipe/snipe-it - [x] snipe/snipe-it
- [x] valeriansaliou/sonic - [x] valeriansaliou/sonic

22
shadowbox/README.md Normal file
View 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>

View File

@ -0,0 +1,4 @@
{
"apiUrl": "https://127.0.0.1:8081/easypi",
"certSha256": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

View File

@ -0,0 +1,4 @@
{
"hostname": "x.x.x.x",
"portForNewAccessKeys": 8443
}

View 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