From 88bced60b77c4b809aa839ee8ba856991b2ec38d Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 13 Nov 2024 19:53:49 +0100 Subject: [PATCH] fixes --- Makefile | 5 +++-- nginx | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8c1e003..b5a5e63 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ APP = jet-search +DOMAIN = jetsearch.com build: docker build -t $(APP) . docker save -o $(APP).tar $(APP) install: - openssl genrsa -out /etc/ssl/private/$(APP).key 2048 + openssl genrsa -out /etc/ssl/private/$(APP).key 2048 -subj '/C=CH/ST=Zurich/L=Zurich/O=InterstellarNet/OU=NONE/CN=$(DOMAIN) openssl req -new -key /etc/ssl/private/$(APP).key -out /etc/ssl/certs/$(APP).csr - openssl x509 -req -in /etc/ssl/certs/$(APP).csr -CA /root/ca.crt -CAkey 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) docker load -i $(APP).tar docker run -p 5000:5000 --name $(APP) --restart always -d $(APP) diff --git a/nginx b/nginx index 6f52b03..58b3772 100644 --- a/nginx +++ b/nginx @@ -1,13 +1,13 @@ server { listen 80; - server_name jetsearch.com www.jetsearch.com; + server_name jetsearch.com; return 301 https://$host$request_uri; } server { listen 443 ssl; - server_name jetsearch.com www.jetsearch.com; + server_name jetsearch.com; ssl_certificate /path/to/your/certificate.crt; ssl_certificate_key /path/to/your/private.key;