From cd2ba7c2513ef3d4fb769a8b101254ec10ba9cc4 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 5 Jan 2024 18:21:43 +0800 Subject: [PATCH] add screego --- README.md | 1 + gotify/docker-compose.yml | 1 + screego/README.md | 6 ++++++ screego/docker-compose.yml | 19 +++++++++++++++++++ screego/nginx.conf | 36 ++++++++++++++++++++++++++++++++++++ 5 files changed, 63 insertions(+) create mode 100644 screego/README.md create mode 100644 screego/docker-compose.yml create mode 100644 screego/nginx.conf diff --git a/README.md b/README.md index 6caa751..f7b78e3 100644 --- a/README.md +++ b/README.md @@ -469,6 +469,7 @@ A collection of delicious docker recipes. - [x] selenoid-ui - [x] semaphoreui/semaphore - [x] sentry +- [x] screego/server - [x] atmoz/sftp - [x] quay.io/outline/shadowbox - [x] shlinkio/shlink diff --git a/gotify/docker-compose.yml b/gotify/docker-compose.yml index 3350f82..3cd8f61 100644 --- a/gotify/docker-compose.yml +++ b/gotify/docker-compose.yml @@ -9,4 +9,5 @@ services: environment: - GOTIFY_DEFAULTUSER_NAME=admin - GOTIFY_DEFAULTUSER_PASS=secret + - TZ=Asia/Shanghai restart: unless-stopped diff --git a/screego/README.md b/screego/README.md new file mode 100644 index 0000000..8102dfd --- /dev/null +++ b/screego/README.md @@ -0,0 +1,6 @@ +screego +======= + +[Screego][1] allows you to share your screen with good quality and low latency. + +[1]: https://screego.net/ diff --git a/screego/docker-compose.yml b/screego/docker-compose.yml new file mode 100644 index 0000000..442260b --- /dev/null +++ b/screego/docker-compose.yml @@ -0,0 +1,19 @@ +# +# See: https://screego.net/#/config +# + +version: "3.8" +services: + screego: + image: screego/server:1.10.2 + ports: + - "5050:5050" + - "3478:3478" + - "50000-50200:50000-50200/udp" + environment: + - SCREEGO_EXTERNAL_IP=192.168.178.2 + - SCREEGO_SECRET=b8a8e200-0560-4cd5-bf10-d5426bc5e8e3 + - SCREEGO_SERVER_ADDRESS=0.0.0.0:5050 + - SCREEGO_TURN_ADDRESS=0.0.0.0:3478 + - SCREEGO_TURN_PORT_RANGE=50000:50200 + restart: unless-stopped diff --git a/screego/nginx.conf b/screego/nginx.conf new file mode 100644 index 0000000..c4ec98b --- /dev/null +++ b/screego/nginx.conf @@ -0,0 +1,36 @@ +# +# See: https://screego.net/#/proxy +# + +upstream screego { + # Set this to the address configured in + # SCREEGO_SERVER_ADDRESS. Default 5050 + server 127.0.0.1:5050; +} + +server { + listen 80; + + # Here goes your domain / subdomain + server_name screego.example.com; + + location / { + # Proxy to screego + proxy_pass http://screego; + proxy_http_version 1.1; + + # Set headers for proxying WebSocket + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_redirect http:// $scheme://; + + # Set proxy headers + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto http; + + # The proxy must preserve the host because screego verifies it with the origin + # for WebSocket connections + proxy_set_header Host $http_host; + } +}