This commit is contained in:
Patrick 2024-11-13 20:19:03 +01:00
parent 88bced60b7
commit 6703307208

View file

@ -6,9 +6,9 @@ build:
docker save -o $(APP).tar $(APP) docker save -o $(APP).tar $(APP)
install: install:
openssl genrsa -out /etc/ssl/private/$(APP).key 2048 -subj '/C=CH/ST=Zurich/L=Zurich/O=InterstellarNet/OU=NONE/CN=$(DOMAIN) openssl genrsa -out /etc/ssl/private/$(APP).key 2048
openssl req -new -key /etc/ssl/private/$(APP).key -out /etc/ssl/certs/$(APP).csr openssl req -new -key /etc/ssl/private/$(APP).key -out /etc/ssl/certs/$(APP).csr -subj '/C=CH/ST=Zurich/L=Zurich/O=InterstellarNet/OU=NONE/CN=$(DOMAIN)'
openssl x509 -req -in /etc/ssl/certs/$(APP).csr -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -out /etc/ssl/certs/$(APP).crt -days 500 -sha256' openssl x509 -req -in /etc/ssl/certs/$(APP).csr -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -out /etc/ssl/certs/$(APP).crt -days 500 -sha256
cp nginx /etc/nginx/sites-enabled/$(APP) cp nginx /etc/nginx/sites-enabled/$(APP)
docker load -i $(APP).tar docker load -i $(APP).tar
docker run -p 5000:5000 --name $(APP) --restart always -d $(APP) docker run -p 5000:5000 --name $(APP) --restart always -d $(APP)