clojure-finland

elahti 2020-06-12T04:46:49.000900Z

Yes, just checking. I think we had this conversation few years ago too. I guess a CNAME is not enough? Doesn't in that case the address change from http://clojure.fi to http://clojurefinland.github.io too?

valtteri 2020-06-12T04:49:39.001900Z

Ahh yeah the problem would be that ssl-cert in github pages wouldn’t be valid for http://clojure.fi I guess. So maybe we’re happy the way it is atm. 🙂

valtteri 2020-06-12T04:51:22.003100Z

The redirect seems to be coming from an nginx server though… So it could proxy the request to github pages but still there should be a valid SSL-certificate for http://clojure.fi on the nginx server and that costs 💰.

juhoteperi 2020-06-12T05:04:56.003500Z

https://letsencrypt.org/

valtteri 2020-06-12T05:33:22.004500Z

Still it’s some 💰 in terms of work

valtteri 2020-06-12T05:34:17.005100Z

But good point about letsencrypt!

juhoteperi 2020-06-12T05:36:49.005800Z

But also, DNS changes to point the domain to github would work and github will handle the certificate.

elahti 2020-06-12T09:07:04.006400Z

Hmm okay so in DNS terms what should be done?

elahti 2020-06-12T09:07:21.006700Z

I mean, I can try to make something happen.

elahti 2020-06-12T09:10:22.007100Z

Now I tried https://clojure.fi for the first time. I see the problem right there.

juhoteperi 2020-06-12T09:18:09.008500Z

apex http://clojutre.fi A records pointing to 185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153 (or ALIAS record to http://clojurefinland.github.io if the provider supports it) and www CNAME record to http://clojurefinland.github.io

elahti 2020-06-12T09:28:21.008900Z

I asked for a valid certificate to http://clojure.fi . Should happen at some point.

elahti 2020-06-12T09:48:48.009600Z

New cert has been installed, https://clojure.fi should now work without problems?

valtteri 2020-06-12T18:23:41.010500Z

It still redirects to http://clojurefinland.github.io ? 😮

curl -v <https://clojure.fi>
*   Trying 62.165.154.49...
* TCP_NODELAY set
* Connected to <http://clojure.fi|clojure.fi> (62.165.154.49) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=<http://clojure.fi|clojure.fi>
*  start date: Jun 12 08:42:08 2020 GMT
*  expire date: Sep 10 08:42:08 2020 GMT
*  subjectAltName: host "<http://clojure.fi|clojure.fi>" matched cert's "<http://clojure.fi|clojure.fi>"
*  issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
*  SSL certificate verify ok.
&gt; GET / HTTP/1.1
&gt; Host: <http://clojure.fi|clojure.fi>
&gt; User-Agent: curl/7.64.1
&gt; Accept: */*
&gt;
&lt; HTTP/1.1 301 Moved Permanently
&lt; Server: nginx/1.14.2
&lt; Date: Fri, 12 Jun 2020 18:23:07 GMT
&lt; Content-Type: text/html
&lt; Content-Length: 185
&lt; Connection: keep-alive
&lt; Location: <https://clojurefinland.github.io/>
&lt; Strict-Transport-Security: max-age=31536000
&lt;
&lt;html&gt;
&lt;head&gt;&lt;title&gt;301 Moved Permanently&lt;/title&gt;&lt;/head&gt;
&lt;body bgcolor="white"&gt;
&lt;center&gt;&lt;h1&gt;301 Moved Permanently&lt;/h1&gt;&lt;/center&gt;
&lt;hr&gt;&lt;center&gt;nginx/1.14.2&lt;/center&gt;
&lt;/body&gt;
&lt;/html&gt;
* Connection #0 to host <http://clojure.fi|clojure.fi> left intact
* Closing connection 0
➜  <http://ClojureFinland.github.io|ClojureFinland.github.io> git:(master) ✗

valtteri 2020-06-12T18:26:32.011600Z

It would be super cool if you could add something like this to nginx conf:

location / {
    proxy_pass  <https://clojurefinland.github.io>;
}

macroz 2020-06-12T18:27:56.012700Z

I personally don't find any value in that proxying

valtteri 2020-06-12T18:28:18.013300Z

Ok, I think the idea was that it would look maybe “more professional” if the address bar said http://clojure.fi

valtteri 2020-06-12T18:28:26.013700Z

But It’s not a biggie to me at least.

macroz 2020-06-12T18:28:57.014700Z

if it's the truth, I.e. github is hosting it then I think it's good

macroz 2020-06-12T18:29:23.015300Z

more likely that someone will notice they can contribute?

valtteri 2020-06-12T18:29:48.015500Z

The page has link to github

macroz 2020-06-12T18:30:24.016100Z

tthat's why I said more likely