Overview for 'serversforhackers'
Written by Servers for Hackers
/ Original link
on Jan. 26, 2019
LetsEncrypt with HAProxy This is a video from the Scaling Laravel course's Load Balancing module. Part of what I wanted to cover was how to use SSL certificates with a HAProxy load balancer. LetsEncrypt (certbot) is great for this, since we can get a free and trusted SSL certificate. Since we're us…
Written by unknown
/ Original link
on Jan. 26, 2019
? Nginx "map" is super useful!? Nginx sets incoming headers to variables ($http_foo)So, here we set X-Forwarded-Proto to the value of $cloudfront_proto that "map" creates by testing for two possible "proto" headers!https://t.co/VkNRMpDDqr pic.twitter.com/6CAXEhiA29— Chris Fidao (@fideloper) May 23,…
Written by unknown
/ Original link
on Jan. 26, 2019
LetsEncrypt with HAProxy This is a video from the Scaling Laravel course's Load Balancing module. Part of what I wanted to cover was how to use SSL certificates with a HAProxy load balancer. LetsEncrypt (certbot) is great for this, since we can get a free and trusted SSL certificate. Since we're us…
Written by Servers for Hackers
/ Original link
on Jan. 21, 2019
We'll set up SSL-termination on the load balancer. In this setup, the load balancer decrypts the SSL connection and sends an http request on port 80 over the local private network to the application servers. SSL Termination is a common setup, however there are setups that keep the connection encryp…
Written by Servers for Hackers
/ Original link
on Jan. 21, 2019
PHP We can see we have php 7.0 available out of the box: sudo apt-cache show php-cli Instead of using that, we'll start by installing the latest PHP 7.1, via the populate PHP repository. # Add repository and update local cache of available packages sudo add-apt-repository -y ppa:ondrej/php sudo apt…
Written by Servers for Hackers
/ Original link
on Jan. 21, 2019
Composer First we installed Composer so we can get PHP dependencies: # Become user root sudo su # Pipe the composer installer to php, and pass the installer some flags curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer GitHub Next, we want to…