Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ Following are the ENVs related to chrome and SMTP. * means required -
<tr>
<td><code>ZO_CHROME_WINDOW_WIDTH</code></td>
<td>Browser window width</td>
<td>1370</td>
<td>730</td>
</tr>
<tr>
<td><code>ZO_CHROME_WINDOW_HEIGHT</code></td>
<td>Browser window height</td>
<td>730</td>
<td>1370</td>
</tr>

<tr><td colspan="3"><strong>SMTP Settings</strong></td></tr>
Expand Down Expand Up @@ -150,8 +150,8 @@ ZO_SMTP_ENCRYPTION = "ssltls" # Or "starttls"
# It will automatically download system specific chromium in the `./download` folder.
# ZO_CHROME_CHECK_DEFAULT_PATH = false

ZO_CHROME_WINDOW_WIDTH = 1440
ZO_CHROME_WINDOW_HEIGHT = 730
ZO_CHROME_WINDOW_WIDTH = 730
ZO_CHROME_WINDOW_HEIGHT = 1370
```

On the OpenObserve part, you need to include the below ENVs -
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ pub struct Chrome {
pub chrome_with_head: bool,
#[env_config(name = "ZO_CHROME_SLEEP_SECS", default = 20)]
pub chrome_sleep_secs: u16,
#[env_config(name = "ZO_CHROME_WINDOW_WIDTH", default = 1370)]
#[env_config(name = "ZO_CHROME_WINDOW_WIDTH", default = 730)]
pub chrome_window_width: u32,
#[env_config(name = "ZO_CHROME_WINDOW_HEIGHT", default = 730)]
#[env_config(name = "ZO_CHROME_WINDOW_HEIGHT", default = 1370)]
pub chrome_window_height: u32,
#[env_config(name = "ZO_CHROME_ADDITIONAL_ARGS", default = "")]
pub chrome_additional_args: String,
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ pub struct ReportAttachmentDimensions {
impl Default for ReportAttachmentDimensions {
fn default() -> Self {
Self {
height: CONFIG.chrome.chrome_window_width,
width: CONFIG.chrome.chrome_window_height,
height: CONFIG.chrome.chrome_window_height,
width: CONFIG.chrome.chrome_window_width,
}
}
}
Expand Down