holy-unblocker / website-aio

All-in-one Holy Unblocker bundle

Home Page:https://website-aio-e9x.koyeb.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get SSL Certificate for the host?

SteadyStatus21 opened this issue · comments

Hello!
I am trying to convert my domain from http:// into https://.
Is there a tool like certbot that can autorenew a ssl certificate and apply it for me?

Thanks,
SteadyStatus21

commented

i dont know but do you know why its not working for me?

What is your issue @crapmonster77?

Hello! I am trying to convert my domain from http:// into https://. Is there a tool like certbot that can autorenew a ssl certificate and apply it for me?

Yes. Try certbot. This script isn't configured to run under HTTPS, and really isn't intended to be exposed directly to the internet. Ideally you would use a reverse proxy like what the deployment services listed will do. I recommend you setup NGINX and configure it to proxy the website-aio script.

Here's an example config:

# config w/letsencrypt
# HOSTNAME is a placeholder

server {
	listen 443 ssl http2;
	server_name HOSTNAME;

	location / {
		# Upgrade WebSockets
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection 'Upgrade';
		# Increase header buffer
		proxy_connect_timeout 10;
		proxy_send_timeout 90;
		proxy_read_timeout 90;
		proxy_buffer_size 128k;
		proxy_buffers 4 256k;
		proxy_busy_buffers_size 256k;
		proxy_temp_file_write_size 256k;
		# website script
		proxy_pass http://127.0.0.1:80;
	}
        
	ssl_certificate /etc/letsencrypt/live/HOSTNAME-0001/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/HOSTNAME-0001/privkey.pem;
	include /etc/letsencrypt/options-ssl-nginx.conf;
	ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}

@e9x You are AMAZING!
Thank you so much!
-SteadyStatus21

commented

What is your issue @crapmonster77?
@SteadyStatus21
it just shows a gray screen

it just shows a gray screen

open a separate issue..