Posts

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.

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.

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.

https://stackoverflow.com/questions/21087564/gmail-smtp-is-not-working-in-ec2-instance

https://linuxconfig.org/configuring-gmail-as-sendmail-email-relay

Go to https://www.google.com/settings/security/lesssecureapps and set Access for less secure apps to On

goto : https://accounts.google.com/DisplayUnlockCaptcha

and click continue this going to allow access from other servers.

https://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/