Skip to content

Commit

Permalink
Add allowIframe environment variable for Docker (#446)
Browse files Browse the repository at this point in the history
* Add `allowIframe` environment variable for Docker

There is no other easy way to enable iframes in Docker otherwise.

* Add allowIframe env to docs
  • Loading branch information
jk-ethz authored Jun 10, 2023
1 parent 7dde689 commit db69a19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/atoz.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ SSHPORT
KNOWNHOSTS
FORCESSH
COMMAND
ALLOWIFRAME
```

These can be used in the following way
Expand Down
2 changes: 1 addition & 1 deletion src/shared/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const serverDefault: Server = {
port: parseInt(process.env.PORT || '3000', 10),
host: '0.0.0.0',
title: process.env.TITLE || 'WeTTY - The Web Terminal Emulator',
allowIframe: false,
allowIframe: process.env.ALLOWIFRAME === 'true' || false,
};

export const forceSSHDefault = process.env.FORCESSH === 'true' || false;
Expand Down

0 comments on commit db69a19

Please sign in to comment.