diff --git a/README.md b/README.md index 7d11915..8d46385 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Not every stack is tested to fully work. | Sonarr | ✅ | `linuxserver/sonarr` | TV Shows, series and anime downloader and manager. | [Website](https://sonarr.tv), [Github](https://github.com/Sonarr/Sonarr), [Wiki](https://wiki.servarr.com/sonarr) | | Speedtest | ✅ | `adolfintel/speedtest` | Libre speed test implementation. | [Website](https://librespeed.org), [Github](https://github.com/librespeed/speedtest) | | Synapse | ✅ | `matrixdotorg/synapse` | Matrix reference server written in Python. | [Website](https://matrix.org/docs/projects/server/synapse), [Github](https://github.com/matrix-org/synapse), [Installation and configuration](https://matrix-org.github.io/synapse/latest/setup/installation.html) | +| Synapse Admin | ❌ Unfinished | `awesometechnologies/synapse-admin` | Synapse Admin panel. | [Github](https://github.com/Awesome-Technologies/synapse-admin) | | Syncthing | ✅ | `linuxserver/syncthing` | P2P file synchronization daemon. | [Website](https://syncthing.net), [Github](https://github.com/syncthing/syncthing) | | Tor OBFS4 Bridge | ✅ | `thetorproject/obfs4-bridge` | Tor OBFS4 Bridge for Tor blocking bypass. | [Website](https://community.torproject.org/relay/setup/bridge/), [Gitlab](https://gitlab.torproject.org/tpo/anti-censorship/docker-obfs4-bridge), [Manual](https://community.torproject.org/relay/setup/bridge/docker/) | | Tor Privoxy | ✅ | `registry.gitlab.com/skobkin/torproxy-obfs4` | Tor image with integrated privoxy and OBFS4 bridge support. | [Original image Github](https://github.com/dperson/torproxy), [OBFS4 support image Gitlab](https://gitlab.com/skobkin/torproxy-obfs4) | diff --git a/synapse-admin/.env.dist b/synapse-admin/.env.dist new file mode 100644 index 0000000..9ad0b58 --- /dev/null +++ b/synapse-admin/.env.dist @@ -0,0 +1,7 @@ +WEBUI_BIND_ADDR=127.0.0.1 +WEBUI_BIND_PORT=8009 + +REACT_APP_SERVER=https://synapse + +LOG_MAX_SIZE=5m +LOG_MAX_FILE=5 \ No newline at end of file diff --git a/synapse-admin/docker-compose.yml b/synapse-admin/docker-compose.yml new file mode 100644 index 0000000..2a35adf --- /dev/null +++ b/synapse-admin/docker-compose.yml @@ -0,0 +1,25 @@ +# https://hub.docker.com/r/awesometechnologies/synapse-admin +version: '3.7' + +networks: + # You need to create this network manually first! + synapse: + external: true + +services: + synapse-admin: + image: awesometechnologies/synapse-admin + container_name: synapse-admin + hostname: synapse-admin + networks: + - default + - synapse + ports: + - "${WEBUI_BIND_ADDR:-127.0.0.1}:${WEBUI_BIND_PORT:-8009}:80" + env_file: .env + restart: unless-stopped + logging: + driver: "json-file" + options: + max-size: "${LOG_MAX_SIZE:-5m}" + max-file: "${LOG_MAX_FILE:-5}" diff --git a/synapse-admin/nginx/synapse_admin.conf b/synapse-admin/nginx/synapse_admin.conf new file mode 100644 index 0000000..3a48411 --- /dev/null +++ b/synapse-admin/nginx/synapse_admin.conf @@ -0,0 +1,18 @@ +server { + listen 80; + server_name synapse.domain.tld; + + #charset utf-8; + + location / { + proxy_set_header Host $host; + 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 $scheme; + + proxy_read_timeout 600s; + proxy_send_timeout 600s; + + proxy_pass http://127.0.0.1:8009/; + } +} \ No newline at end of file diff --git a/synapse/README.md b/synapse/README.md index fc35d89..7525f18 100644 --- a/synapse/README.md +++ b/synapse/README.md @@ -1,6 +1,14 @@ # [Synapse](https://matrix.org/docs/projects/server/synapse) ([Matrix.org](https://matrix.org/) server) -# Generating server configuration +## Shared network + +You MUST create a shared network `synapse` for potential ability to communicate with synapse from `synapse-admin` stack. + +```shell +docker network create --internal synapse +``` + +## Generating server configuration Do not forget to prepare `.env` file before running this. @@ -15,7 +23,7 @@ If you want to use full-fledged PostgreSQL instead of SQLite, you can check To use PostgreSQL running on the host machine, use [this](../_docs/access_database_on_host_from_docker.md) configuration. -# Running the server +## Running the server ```shell docker-compose up -d