apps:lightmeter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apps:lightmeter [2020-11-28 19:44] – Manuel Frei | apps:lightmeter [2020-12-02 10:25] (current) – Manuel Frei | ||
---|---|---|---|
Line 17: | Line 17: | ||
< | < | ||
- | sudo -u lightmeter | + | mkdir /var/lib/lightmeter |
+ | chown lightmeter:lightmeter /var/lib/ | ||
</ | </ | ||
- | |||
< | < | ||
vim / | vim / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=Lightmeter is a monitoring and analysis system for Postfix mail servers (https:// | ||
+ | After=network.target | ||
+ | |||
+ | [Service] | ||
+ | Type=simple | ||
+ | User=lightmeter | ||
+ | ;Group=adm | ||
+ | Group=lightmeter | ||
+ | ExecStart=/ | ||
+ | Restart=on-failure | ||
+ | |||
+ | ; security | ||
+ | PrivateDevices=yes | ||
+ | PrivateTmp=yes | ||
+ | ProtectSystem=full | ||
+ | ReadWriteDirectories=/ | ||
+ | ProtectHome=yes | ||
+ | NoNewPrivileges=yes | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | systemctl daemon-reload | ||
+ | systemctl start lightmeter.service | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | vim / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ServerName lightmeter.example.com | ||
+ | ServerAdmin hostmaster@example.com | ||
+ | Redirect "/" | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | LogLevel warn | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ServerName lightmeter.example.com | ||
+ | ServerAdmin hostmaster@example.com | ||
+ | |||
+ | SSLEngine on | ||
+ | SSLCertificateFile | ||
+ | SSLCertificateKeyFile | ||
+ | |||
+ | < | ||
+ | Allow From All | ||
+ | Satisfy Any | ||
+ | </ | ||
+ | |||
+ | ProxyPassMatch ^/ | ||
+ | ProxyPass "/" | ||
+ | ProxyPassReverse "/" | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | LogLevel warn | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | a2ensite lightmeter.example.com | ||
+ | apachectl graceful | ||
</ | </ |
apps/lightmeter.1606589063.txt.gz · Last modified: 2020-11-28 19:44 by Manuel Frei