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-12-01 10:13] – Manuel Frei | apps:lightmeter [2020-12-02 10:25] (current) – Manuel Frei | ||
---|---|---|---|
Line 31: | Line 31: | ||
[Service] | [Service] | ||
- | Type=forking | + | Type=simple |
User=lightmeter | User=lightmeter | ||
- | Group=adm | + | ;Group=adm |
+ | Group=lightmeter | ||
ExecStart=/ | ExecStart=/ | ||
Restart=on-failure | Restart=on-failure | ||
; security | ; security | ||
+ | PrivateDevices=yes | ||
PrivateTmp=yes | PrivateTmp=yes | ||
+ | ProtectSystem=full | ||
ReadWriteDirectories=/ | ReadWriteDirectories=/ | ||
ProtectHome=yes | ProtectHome=yes | ||
Line 50: | Line 53: | ||
systemctl daemon-reload | systemctl daemon-reload | ||
systemctl start lightmeter.service | 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.txt · Last modified: 2020-12-02 10:25 by Manuel Frei