mirror of
https://github.com/sadoyan/aralez.git
synced 2026-05-30 03:44:06 +08:00
@@ -121,7 +121,7 @@ docker run -d -v /path/to/config:/etc/aralez:rw -p 80:80 -p 443:443 sadoyan/aral
|
|||||||
|
|
||||||
## Systemd integration
|
## Systemd integration
|
||||||
|
|
||||||
Assuming Arales in installed in `/opt/aralez` folder
|
Assuming Aralez in installed in `/opt/aralez` folder
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat > /etc/systemd/system/aralez.service <<EOF
|
cat > /etc/systemd/system/aralez.service <<EOF
|
||||||
@@ -209,7 +209,7 @@ DEFAULT:
|
|||||||
|
|
||||||
**This means:**
|
**This means:**
|
||||||
|
|
||||||
- Sticky sessions are enabled globally. This setting applies to all upstreams. If enabled the value withh be set for `Max-Age=` cookie.
|
- Sticky sessions are enabled globally. This setting applies to all upstreams. If enabled the value will be set for `Max-Age=` cookie.
|
||||||
- HTTP to HTTPS redirect disabled globally, but can be overridden by `to_https` setting per upstream.
|
- HTTP to HTTPS redirect disabled globally, but can be overridden by `to_https` setting per upstream.
|
||||||
- All upstreams will receive custom headers : `X-Forwarded-Proto:https` and `X-Forwarded-Port:443`
|
- All upstreams will receive custom headers : `X-Forwarded-Proto:https` and `X-Forwarded-Port:443`
|
||||||
- Additionally, myhost.mydomain.com with path `/` will receive custom headers : `X-Another-Header:Hohohohoho` and `X-Something-Else:Foobar`
|
- Additionally, myhost.mydomain.com with path `/` will receive custom headers : `X-Another-Header:Hohohohoho` and `X-Something-Else:Foobar`
|
||||||
|
|||||||
@@ -320,7 +320,8 @@ fn log_builder(conf: &AppConfig, location: &Option<String>) {
|
|||||||
LevelFilter::Info
|
LevelFilter::Info
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let pattern = "{d(%Y-%m-%d %H:%M:%S)} {l} {t} - {m}{n}";
|
// let pattern = "{d(%Y-%m-%d %H:%M:%S)} {l} {t} - {m}{n}";
|
||||||
|
let pattern = "{d(%Y-%m-%d %H:%M:%S)} {l} {t} - {m}\n";
|
||||||
if let Some(location) = location {
|
if let Some(location) = location {
|
||||||
let file = FileAppender::builder().encoder(Box::new(PatternEncoder::new(pattern))).build(location).unwrap();
|
let file = FileAppender::builder().encoder(Box::new(PatternEncoder::new(pattern))).build(location).unwrap();
|
||||||
let config = Log4rsConfig::builder()
|
let config = Log4rsConfig::builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user