Replies: 5 comments 9 replies
-
|
I think a lot of people using Zellij use reverse proxies such as Nginx or Caddy to expose hosted services. In such a setup the HTTPS connection is terminated at the proxy and the services just expose HTTP. This has the benefit of easier configuration and arguably more security as the HTTPS implementation in a reverse proxy is more tested. To run the Zellij web server in such a case you could create a self-signed certificate for use on the local network but I think it's a hassle to maintain alongside something that's automatic. You can also bind on I do believe that it should be disallowed by default, but user should be able to allow it in config as part of Other than that, an absolutely AMAZING feature, thanks for putting in the work. I'm already using it myself (although with a patch that disables the |
Beta Was this translation helpful? Give feedback.
-
|
I'm running this through nginx, which is providing SSL (and this entire host is only accessible from tailscale anyway). It just works using Observations so far:
|
Beta Was this translation helpful? Give feedback.
-
|
Er, the Firefox issues seem to have gone away when I reset the page zoom to 100%. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
is there currently a way to include a web font in the web client's HTML? in case the font isn't installed. i'd like to access it through my android tablet's browser, and installing a font there isn't possible |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
In the upcoming release, Zellij will include a web client. Meaning we will be able to share existing sessions in the browser as well as create new ones.
Personally, I have been daily driving the browser client as my main terminal and find it very convenient and much nicer than using a dedicated terminal application.
I'm posting here because I'm seeking user feedback about this feature's UX. If you'd like to try it out and write your impressions here, that will be very helpful. I'm looking for usage feedback specifically: what you like and don't like about the way this feature behaves, is it easy/difficult to use, what you'd like to add, are you having trouble running it, etc. So let's please keep things on topic here.
How does it work?
Zellij will come with a web server (axum) built-in. The web server will be off by default and can be started in order to serve sessions locally in the browser.
Once the web server is running, you can navigate to
http://127.0.0.1:8082in order to get thewelcome-screen, from which you can start new sessions, attach to existing ones or resurrect exited ones.Each session has a dedicated URL, eg.
https://127.0.0.1:8082/grandiose-tomato- navigating to this URL will attach to the session if it exists, resurrect it if it exited and has exited or create it. This means that one can bookmark certain sessions to open and always land in the same place, regardless of whether they're running or not.Sessions started from the terminal must be explicitly shared to be available on the browser.
Note: I recommend using the non-colliding keybinding preset so as to avoid key conflicts with the browser
How to install the preview version and run the web server
Since this feature is not released yet, one will need to compile a test branch of Zellij to use it:
web-client-previewbranch of this repositorycargo x install /path/to/new/executable/path/to/new/executableYou may need to install supporting libraries such as
openssl-devto compile Zellij. More info can be found inCONTRIBUTING.md.To run the web server, you can use the new
shareplugin which is bound toCtrl o+sor toCtrl g+o+s. There you will be able to:You can also use the command line:
zellij web- start the serverzellij web -d- start the server in daemon modezellij web --stop- to stop the web serverSecurity
Zellij will only bind to localhost (127.0.0.1) so that only users on the same machine can connect to it. If you wish to open it up to other clients on your network (for example in order to be able to attach to a session from your phone), you will need to include an SSL certificate (see below).
In addition, to connect to the web server, you're going to need an authentication token. These can be generated and revoked through the
shareplugin (see above) or through the CLI withzellij web --create-token. Tokens are hashed in a local SQLite database, so they can only be displayed once upon creation.Including an SSL certificate
The easiest way to include an SSL certificate is to use
mkcert: https://github.com/FiloSottile/mkcertOnce you have generated a certificate and private key, include them in the Zellij configuration:
How to configure
In the Zellij configuration file:
Looking forward to reading your usage feedback!
Beta Was this translation helpful? Give feedback.
All reactions