mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-11 02:20:20 +08:00
chore: Remove self_signed_certificate_gitpod.sh
This commit is contained in:
parent
e1eb18816c
commit
6f30ddee97
@ -1,21 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# install mkcert
|
|
||||||
curl -fsSL https://github.com/FiloSottile/mkcert/releases/download/v1.4.1/mkcert-v1.4.1-linux-amd64 -o mkcert
|
|
||||||
chmod +x mkcert
|
|
||||||
sudo mv mkcert /usr/local/bin
|
|
||||||
|
|
||||||
# install root CA
|
|
||||||
mkcert -install
|
|
||||||
|
|
||||||
# create certificate
|
|
||||||
mkcert gitpod.local
|
|
||||||
|
|
||||||
# move certificate files to gitpod directory
|
|
||||||
mkdir -p ~/.gitpod/certs
|
|
||||||
mv gitpod.local.pem ~/.gitpod/certs/
|
|
||||||
mv gitpod.local-key.pem ~/.gitpod/certs/
|
|
||||||
|
|
||||||
# configure nginx to use the certificate
|
|
||||||
echo "server { listen 80; listen [::]:80; server_name gitpod.local; ssl_certificate /home/gitpod/.gitpod/certs/gitpod.local.pem; ssl_certificate_key /home/gitpod/.gitpod/certs/gitpod.local-key.pem; }" | sudo tee /etc/nginx/conf.d/gitpod.local.conf
|
|
||||||
sudo systemctl reload nginx
|
|
||||||
Loading…
x
Reference in New Issue
Block a user