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
To add a stream, you need to edit file | |
/etc/stunnel/stunnel.conf | |
Find | |
[shoutcast1] | |
accept=8000 | |
connect=108.170.15.78:8001 | |
cert = /etc/letsencrypt/live/jroradio.com/fullchain.pem |
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
Alias /phpmyadmin "/usr/serverok/phpmyadmin" | |
<Directory "/usr/serverok/phpmyadmin"> | |
AllowOverride All | |
Options FollowSymlinks | |
Order allow,deny | |
Allow from all | |
<IfModule mod_authz_core.c> | |
<RequireAny> | |
Require all granted |
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
ssh into server as user root | |
To make attachment size 100 MB (104857600 bytes) | |
run following 3 commands. | |
postconf -e message_size_limit=104857600 | |
postconf -e mailbox_size_limit=104857600 | |
systemctl restart postfix |
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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/sitemap/public | |
<Directory "/var/www/sitemap/public"> | |
Options All | |
AllowOverride All | |
Require all granted | |
Order allow,deny | |
allow from all | |
</Directory> |
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
-----BEGIN CERTIFICATE----- | |
MIIGFzCCA/+gAwIBAgIQckB41CE86gO/FOVeP1YCNzANBgkqhkiG9w0BAQwFADCB | |
iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl | |
cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV | |
BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTQw | |
ODIyMDAwMDAwWhcNMjkwODIxMjM1OTU5WjCBkzELMAkGA1UEBhMCVVMxEzARBgNV | |
BAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU | |
aGUgVVNFUlRSVVNUIE5ldHdvcmsxOTA3BgNVBAMTMFVTRVJUcnVzdCBSU0EgRG9t | |
YWluIFZhbGlkYXRpb24gU2VjdXJlIFNlcnZlciBDQTCCASIwDQYJKoZIhvcNAQEB | |
BQADggEPADCCAQoCggEBAMTDft1Zl+V3Koj2wygf++oaX4pvUTmt0zbGzThksBeN |
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
root@web:~# cat /etc/prometheus/prometheus.yml | |
# my global config | |
global: | |
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | |
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. | |
# scrape_timeout is set to the global default (10s). | |
# Alertmanager configuration | |
alerting: | |
alertmanagers: |
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
#!/bin/bash | |
useradd --no-create-home --system --shell /bin/false node_exporter | |
cd /usr/local/src | |
wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz | |
tar xvf node_exporter-0.18.1.linux-amd64.tar.gz | |
cd /usr/local/src/node_exporter-0.18.1.linux-amd64/ | |
mv node_exporter /usr/local/bin/ |
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
[Unit] | |
Description=Node Exporter | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
User=node_exporter | |
Group=node_exporter | |
Type=simple | |
ExecStart=/usr/local/bin/node_exporter |
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
root@mail:/var/log/letsencrypt# cat letsencrypt.log | |
2019-11-04 18:26:40,105:DEBUG:certbot.main:certbot version: 0.39.0 | |
2019-11-04 18:26:40,106:DEBUG:certbot.main:Arguments: [] | |
2019-11-04 18:26:40,106:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot) | |
2019-11-04 18:26:40,122:DEBUG:certbot.log:Root logging level set at 20 | |
2019-11-04 18:26:40,123:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log | |
2019-11-04 18:26:40,168:DEBUG:certbot.plugins.selection:Requested authenticator <certbot.cli._Default object at 0x7f0e4fe11390> and installer <certbot.cli._Default object at 0x7f0e4fe11390> | |
2019-11-04 18:26:40,206:INFO:certbot.renewal:Cert not yet due for renewal | |
2019-11-04 18:26:40,207:DEBUG:certbot.plugins.selection:Requested authenticator standalone and installer None | |
2019-11-04 18:26:40,240:INFO:certbot.renewal:Cert not yet due for renewal |
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
root@mail:/www/sites/physiotherapie-ferber.de/htdocs/.well-known/acme-challenge# certbot renew | |
Saving debug log to /var/log/letsencrypt/letsencrypt.log | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
Processing /etc/letsencrypt/renewal/2fly4.de-0004.conf | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
Cert not yet due for renewal | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
Processing /etc/letsencrypt/renewal/2fly4.de.conf |