-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added docker-compose example files and updated scripts to include log…
…s in the GUI
- Loading branch information
Showing
11 changed files
with
115 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: '3.9' | ||
services: | ||
opentrashmail: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile | ||
|
||
volumes: | ||
- './data:/var/www/opentrashmail/data' | ||
- './logs:/var/www/opentrashmail/logs' | ||
environment: | ||
- URL=http://localhost:8080 | ||
- DOMAINS=example.com | ||
- DATEFORMAT=D.M.YYYY HH:mm | ||
- SKIP_FILEPERMISSIONS=true | ||
- DISCARD_UNKNOWN=false | ||
- SHOW_ACCOUNT_LIST=true | ||
- SHOW_LOGS=true | ||
|
||
ports: | ||
- '2525:25' | ||
- '8080:80' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '3.9' | ||
services: | ||
opentrashmail: | ||
image: 'hascheksolutions/opentrashmail:1' | ||
volumes: | ||
- './data:/var/www/opentrashmail/data' | ||
- './logs:/var/www/opentrashmail/logs' | ||
environment: | ||
- URL=http://localhost:8080 | ||
- DOMAINS=example.com | ||
- DATEFORMAT=D.M.YYYY HH:mm | ||
- SKIP_FILEPERMISSIONS=true | ||
- DISCARD_UNKNOWN=false | ||
|
||
ports: | ||
- '2525:25' | ||
- '8080:80' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<a href="#" hx-push-url="/logs/10" hx-get="/api/logs/10" <?= $lines==10?'disabled':'' ?> hx-target="#main" role="button">Last 10 lines</a> | ||
<a href="#" hx-push-url="/logs/50" hx-get="/api/logs/50" <?= $lines==50?'disabled':'' ?> hx-target="#main" role="button">Last 50 lines</a> | ||
<a href="#" hx-push-url="/logs/100" hx-get="/api/logs/100" <?= $lines==100?'disabled':'' ?> hx-target="#main" role="button">Last 100 lines</a> | ||
<a href="#" hx-push-url="/logs/200" hx-get="/api/logs/200" <?= $lines==200?'disabled':'' ?> hx-target="#main" role="button">Last 200 lines</a> | ||
<a href="#" hx-push-url="/logs/500" hx-get="/api/logs/500" <?= $lines==500?'disabled':'' ?> hx-target="#main" role="button">Last 500 lines</a> | ||
|
||
<hr> | ||
|
||
<h2>Mailserver log</h2> | ||
<div> | ||
<pre><code><?= file_exists($mailserverlogfile)?tailShell($mailserverlogfile, $lines):'- Mailserver log file not found -' ?></code><pre> | ||
</div> | ||
|
||
<h2>Webserver error log</h2> | ||
<div> | ||
<pre><code><?= file_exists($webservererrorlogfile)?tailShell($webservererrorlogfile, $lines):'- Webserver error log file not found -' ?></code><pre> | ||
</div> | ||
|
||
<h2>Webserver access log</h2> | ||
<div> | ||
<pre><code><?= file_exists($webserveraccesslogfile)?tailShell($webserveraccesslogfile, $lines):'- Webserver access log file not found -' ?></code><pre> | ||
</div> | ||
|
||
<h2>Current config</h2> | ||
<div> | ||
<pre><code><?= file_exists($configfile)?file_get_contents($configfile):'- Config file not found -' ?></code><pre> | ||
</div> |