Setup a dev enviroment on WSL
https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configure-global-options-with-wslconfig
Setup a dev enviroment on WSL
https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configure-global-options-with-wslconfig
| $remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
| $found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
| if( $found ){ | |
| $remoteport = $matches[0]; | |
| } else{ | |
| echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
| exit; | |
| } |
| <Macro HSTS> | |
| Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" | |
| </Macro> | |
| <Macro LetsEncrypt $domain> | |
| SSLEngine on | |
| SSLCertificateKeyFile /etc/letsencrypt/live/$domain/privkey.pem | |
| SSLCertificateFile /etc/letsencrypt/live/$domain/fullchain.pem | |
| Use HSTS | |
| </Macro> |
| #!/bin/bash | |
| wget -O - https://gist.githubusercontent.com/gabrielsolomon/776025b533b5e4a3fd1473653a3577c7/raw/initial_setup.sh | bash | |
| wget -O - https://gist.githubusercontent.com/gabrielsolomon/776025b533b5e4a3fd1473653a3577c7/raw/install_lamp_ubuntu.sh | bash | |
| #wget -O - https://gist.githubusercontent.com/gabrielsolomon/776025b533b5e4a3fd1473653a3577c7/raw/certbot.sh | bash | |
| #wget -O - https://gist.githubusercontent.com/gabrielsolomon/776025b533b5e4a3fd1473653a3577c7/raw/newrelic_php.sh | bash | |