certbot Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/et.com/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/et.com/privkey.pem Your cert will expire on 2018-02-19. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the “certonly” option. To non-interactively renew all of your certificates, run “certbot renew” If you like Certbot, please consider supporting our work by: Donating to ISRG / Let’s Encrypt: https://letsencrypt.
1 min read
Configuring Piwik accessed via an Nginx reverse proxy public Nginx server configured as
location ^~ /piwik/ { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $host; proxy_pass http://192.168.79.4/piwik/; } config.ini.php config on piwi nginx site
[General] proxy_client_headers[] = "HTTP_X_FORWARDED_FOR" proxy_client_headers[] = "X-Real-IP" proxy_host_headers[] = "HTTP_X_FORWARDED_HOST" proxy_ips[] = "192.168.79.4" trusted_hosts[] = "192.168.79.4" trusted_hosts[] = "<public-domain-server>" Configure GeoIP (PECL) With Piwik check php version
curl http://localhost/info.php PHP Version 7.
2 min read
Basic Server Setup To start off, we need to set the password of the PostgreSQL user (role) called “postgres”; we will not be able to access the server externally otherwise. As the local “postgres” Linux user, we are allowed to connect and manipulate the server using the psql command.
In a terminal, type:
sudo -u postgres psql postgres this connects as a role with same name as the local user, i.