Skip to content

Instantly share code, notes, and snippets.

View alicoskun's full-sized avatar

Ali Coskun alicoskun

  • LeasePlan
  • İstanbul
View GitHub Profile
@alicoskun
alicoskun / Create SSL Certificate for production environment.md
Created March 31, 2019 19:56
Create SSL Certificate for production environment

Create SSL Certificate for production environment

Create dh-param

mkdir -p /docker-volumes/etc/ssl/dh-param
sudo openssl dhparam -out /docker-volumes/etc/ssl/dh-param/dhparam.pem 2048

Staging

sudo docker run -it --rm \

@alicoskun
alicoskun / Create local SSL certificate for NGINX on Windows.md
Last active February 20, 2024 11:19
Create local SSL certificate for NGINX on Windows

1. Run following script in PowerShell

param (
    [Parameter(Mandatory=$true)][string]$certificatename,
    [Parameter(Mandatory=$true)][SecureString]$certificatepassword
 )
# setup certificate properties including the commonName (DNSName) property for Chrome 58+
$certificate = New-SelfSignedCertificate `
    -Subject localhost `
    -DnsName localhost `
@alicoskun
alicoskun / docker-cheat-sheet.txt
Last active March 14, 2021 15:45
useful docker commands
docker build -t dockerapi .
docker run --name dockerapi -p 8000:80 dockerapi:latest
docker image ls
docker image prune
docker system prune
docker container ls
docker logs --since=1h <container> // use -f or --follow to view logs realtime
docker logs --tail 20 <container>
docker commit 44159fc64fde alicoskun/cloud-sample