mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-01 16:15:24 +00:00
chore: drop guacd from compose files and dev runner
This commit is contained in:
1 parent
8e809aa760
commit
f76a1adfb8
8 files changed
+9
-56
No files matched your search
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
- The Docker Compose files no longer start a guacd container. npm run dev -- --guacd also points remote desktop at the guacd it starts
|
||||||
- The side menu now opens over the page when it expands on hover, so open sessions like remote desktop are not resized each time. Turn on Push content when it expands in Settings to get the old behavior back
|
- The side menu now opens over the page when it expands on hover, so open sessions like remote desktop are not resized each time. Turn on Push content when it expands in Settings to get the old behavior back
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ Want to build your own? Start from the [plugin template](https://github.com/Term
|
|||||||
|
|
||||||
See the [docs](https://docs.termix.site/install) for install steps on every platform.
|
See the [docs](https://docs.termix.site/install) for install steps on every platform.
|
||||||
|
|
||||||
Sample Docker Compose file (you can leave out `guacd` and the network if you don't plan to use the Remote Desktop plugin):
|
Sample Docker Compose file. Remote desktop (RDP, VNC and Telnet) is built in, so nothing else needs to run next to it:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
@@ -151,31 +151,10 @@ services:
|
|||||||
- termix-data:/app/data
|
- termix-data:/app/data
|
||||||
environment:
|
environment:
|
||||||
PORT: "8080"
|
PORT: "8080"
|
||||||
GUACD_HOST: "guacd"
|
|
||||||
GUACD_TUNNEL_HOST: "termix"
|
|
||||||
GUACD_RECORDING_PATH: "/termix-data/session_recordings/guacamole"
|
|
||||||
GUACD_DRIVE_PATH: "/termix-data/rdp-drive"
|
|
||||||
depends_on:
|
|
||||||
- guacd
|
|
||||||
networks:
|
|
||||||
- termix-net
|
|
||||||
|
|
||||||
guacd:
|
|
||||||
image: guacamole/guacd:1.6.0
|
|
||||||
container_name: guacd
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- termix-data:/termix-data
|
|
||||||
networks:
|
|
||||||
- termix-net
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
termix-data:
|
termix-data:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
networks:
|
|
||||||
termix-net:
|
|
||||||
driver: bridge
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Cloud Hosting
|
### Cloud Hosting
|
||||||
|
|||||||
@@ -12,24 +12,9 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
PORT: "8080"
|
PORT: "8080"
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
GUACD_HOST: "guacd-dev"
|
|
||||||
GUACD_TUNNEL_HOST: "termix-dev"
|
|
||||||
GUACD_RECORDING_PATH: "/termix-data/session_recordings/guacamole"
|
|
||||||
GUACD_DRIVE_PATH: "/termix-data/rdp-drive"
|
|
||||||
# REDIS_URL: "redis://redis:6379"
|
# REDIS_URL: "redis://redis:6379"
|
||||||
# TERMIX_REDIS_PREFIX: "termix:collab"
|
# TERMIX_REDIS_PREFIX: "termix:collab"
|
||||||
# TERMIX_STEP_CA_REDIS_PREFIX: "termix:step-ca"
|
# TERMIX_STEP_CA_REDIS_PREFIX: "termix:step-ca"
|
||||||
depends_on:
|
|
||||||
- guacd-dev
|
|
||||||
networks:
|
|
||||||
- termix-dev-net
|
|
||||||
|
|
||||||
guacd-dev:
|
|
||||||
image: guacamole/guacd:1.6.0
|
|
||||||
container_name: guacd-dev
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- termix-dev-data:/termix-data
|
|
||||||
networks:
|
networks:
|
||||||
- termix-dev-net
|
- termix-dev-net
|
||||||
|
|
||||||
|
|||||||
@@ -9,12 +9,6 @@ services:
|
|||||||
- termix-data:/app/data
|
- termix-data:/app/data
|
||||||
environment:
|
environment:
|
||||||
PORT: "8080"
|
PORT: "8080"
|
||||||
GUACD_HOST: "guacd"
|
|
||||||
GUACD_TUNNEL_HOST: "termix"
|
|
||||||
GUACD_RECORDING_PATH: "/termix-data/session_recordings/guacamole"
|
|
||||||
# Where guacd stores files for RDP drive redirection (one folder per
|
|
||||||
# user is created underneath). Must be writable by guacd's user.
|
|
||||||
GUACD_DRIVE_PATH: "/termix-data/rdp-drive"
|
|
||||||
# Multi-instance deployments should point every backend at the same
|
# Multi-instance deployments should point every backend at the same
|
||||||
# Redis. Without it, collaboration rooms keep their single-instance
|
# Redis. Without it, collaboration rooms keep their single-instance
|
||||||
# in-memory fallback.
|
# in-memory fallback.
|
||||||
@@ -36,17 +30,6 @@ services:
|
|||||||
# TRUSTED_PROXY_AUTH_ROLE_MAP: '{"operators":["user"]}'
|
# TRUSTED_PROXY_AUTH_ROLE_MAP: '{"operators":["user"]}'
|
||||||
# TRUSTED_PROXY_AUTH_USERNAME_HEADER: "x-forwarded-username"
|
# TRUSTED_PROXY_AUTH_USERNAME_HEADER: "x-forwarded-username"
|
||||||
# TRUSTED_PROXY_AUTH_ROLE_HEADER: "x-forwarded-role"
|
# TRUSTED_PROXY_AUTH_ROLE_HEADER: "x-forwarded-role"
|
||||||
depends_on:
|
|
||||||
- guacd
|
|
||||||
networks:
|
|
||||||
- termix-net
|
|
||||||
|
|
||||||
guacd:
|
|
||||||
image: guacamole/guacd:1.6.0
|
|
||||||
container_name: guacd
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- termix-data:/termix-data
|
|
||||||
networks:
|
networks:
|
||||||
- termix-net
|
- termix-net
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ describe("serviceEnv", () => {
|
|||||||
DATABASE_URL: "postgres://termix:termix@127.0.0.1:55432/termix",
|
DATABASE_URL: "postgres://termix:termix@127.0.0.1:55432/termix",
|
||||||
GUACD_HOST: "127.0.0.1",
|
GUACD_HOST: "127.0.0.1",
|
||||||
GUACD_PORT: "4822",
|
GUACD_PORT: "4822",
|
||||||
|
REMOTE_DESKTOP_ENGINE: "guacd",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -53,6 +54,7 @@ describe("serviceEnv", () => {
|
|||||||
DATABASE_URL: "mysql://root:termix@termix-dev-mysql:3306/termix",
|
DATABASE_URL: "mysql://root:termix@termix-dev-mysql:3306/termix",
|
||||||
GUACD_HOST: "termix-dev-guacd",
|
GUACD_HOST: "termix-dev-guacd",
|
||||||
GUACD_PORT: "4822",
|
GUACD_PORT: "4822",
|
||||||
|
REMOTE_DESKTOP_ENGINE: "guacd",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
+2
-1
@@ -14,7 +14,8 @@
|
|||||||
* mounted. A plugin change rebuilds it and restarts the container. Core
|
* mounted. A plugin change rebuilds it and restarts the container. Core
|
||||||
* changes wait for "r", since an image build is slow.
|
* changes wait for "r", since an image build is slow.
|
||||||
*
|
*
|
||||||
* --db postgres|mysql and --guacd run those in Docker next to it.
|
* --db postgres|mysql and --guacd run those in Docker next to it; --guacd also
|
||||||
|
* switches remote desktop from its built-in engine to that guacd.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
|
|||||||
@@ -85,6 +85,8 @@ export function serviceEnv(options, inDocker) {
|
|||||||
const guacd = SERVICES.guacd;
|
const guacd = SERVICES.guacd;
|
||||||
env.GUACD_HOST = inDocker ? guacd.container : "127.0.0.1";
|
env.GUACD_HOST = inDocker ? guacd.container : "127.0.0.1";
|
||||||
env.GUACD_PORT = String(inDocker ? guacd.port : guacd.hostPort);
|
env.GUACD_PORT = String(inDocker ? guacd.port : guacd.hostPort);
|
||||||
|
// Remote desktop runs built in unless told to use guacd.
|
||||||
|
env.REMOTE_DESKTOP_ENGINE = "guacd";
|
||||||
}
|
}
|
||||||
return env;
|
return env;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ Options
|
|||||||
--plugins <dir> Plugin repos to build and watch (default ../Plugins)
|
--plugins <dir> Plugin repos to build and watch (default ../Plugins)
|
||||||
--no-local Use only the plugins pinned in docker/bundled-plugins.json
|
--no-local Use only the plugins pinned in docker/bundled-plugins.json
|
||||||
--db <engine> sqlite (default), postgres or mysql. Postgres and MySQL run in Docker
|
--db <engine> sqlite (default), postgres or mysql. Postgres and MySQL run in Docker
|
||||||
--guacd Run guacd in Docker for remote desktop
|
--guacd Run guacd in Docker and use it instead of the built-in remote desktop
|
||||||
--fresh Start from empty data (first run, onboarding)
|
--fresh Start from empty data (first run, onboarding)
|
||||||
--data <dir> Data folder for the backend (default db/data, db/data-desktop for
|
--data <dir> Data folder for the backend (default db/data, db/data-desktop for
|
||||||
electron, plus -<engine> for postgres or mysql)
|
electron, plus -<engine> for postgres or mysql)
|
||||||
|
|||||||
Reference in new issue
Block a user