beakerbrowser / homebase

Self-deployable tool for hosting hyper:// websites
MIT License
407 stars 36 forks source link

greenlock skipping fronting check #19

Closed slmyers closed 6 years ago

slmyers commented 6 years ago

Hi, for some reason I am unable to integrate with letsencrypt. I can run the server without letsencrypt, using http only and on port 80. I think there is a problem in my config file. Here is my config file

directory: ~/.homebase
httpMirror: true
ports:
  http: 80
  https: 403
letsencrypt:
        email: slmyers@ualberta.ca
        agreeTos: true
dats:
  - url: dat://63df89db2d373b5575632b386c2fd651fc686ac54445ce450028e8151f07780a
    domains: slmyers.info

here is my output

slmyers_dev@homebase-1:~$ export NODE_ENV=production
slmyers_dev@homebase-1:~$ homebase

== Homebase 2.0.3 ==

 ▶ Directory:    /home/slmyers_dev/.homebase
 ▶ Ports:        80 (HTTP) 403 (HTTPS)
 ▶ HTTP mirror:  ✔ enabled
 ▶ Lets Encrypt: ✔ enabled
 ▶ Dashboard:    ✖ disabled
 ▶ WebAPI:       ✖ disabled 

Serving
  dat://63df89db2d373b5575632b386c2fd651fc686ac54445ce450028e8151f07780a
  at slmyers.info

/* quite a long pause here */

[greenlock] WARN: no string for req.socket.servername, skipping fronting check for 'slmyers.info'

I get ERR_CONNECTION_REFUSED when connecting via https or http. Can anyone please help me? Thanks.

pfrazee commented 6 years ago

I'm not sure the domain fronting warning is related, unless you're explicitly trying to do domain fronting.

Are you sure that port 403 isn't blocked by your server's routing/firewall rules?

slmyers commented 6 years ago

Are you sure that port 403 isn't blocked by your server's routing/firewall rules?

Oh, my. I'm such a dolt. I meant 443.

Thanks.

pfrazee commented 6 years ago

Oh that's funny, I didn't notice the port was wrong either. Glad that solved it.