asheesh changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Channel glossary: "i,i" means "I have no point, I just want to say". b == thumbs up. | Public logs at https://botbot.me/freenode/sandstorm/ & http://logbot.g0v.tw/channel/sandstorm/today
bemasc has joined #sandstorm
frigginglorious has joined #sandstorm
frigginglorious has quit [Client Quit]
frigginglorious has joined #sandstorm
frigginglorious has quit [Quit: frigginglorious]
frigginglorious has joined #sandstorm
jemc has quit [Ping timeout: 272 seconds]
rustyrazorblade has joined #sandstorm
rustyrazorblade has quit [Quit: rustyrazorblade]
Lionel_Debroux_ has joined #sandstorm
Lionel_Debroux has quit [Ping timeout: 276 seconds]
frankier has joined #sandstorm
isd has joined #sandstorm
Lionel_Debroux has joined #sandstorm
Lionel_Debroux_ has quit [Ping timeout: 276 seconds]
Lionel_Debroux_ has joined #sandstorm
Lionel_Debroux has quit [Ping timeout: 276 seconds]
isd has quit [Quit: Leaving.]
frankier has quit [Ping timeout: 244 seconds]
frigginglorious has quit [Quit: frigginglorious]
<lukexj> hey
<lukexj> how are you guys?
jemc has joined #sandstorm
jacksingleton has quit [Ping timeout: 240 seconds]
jemc has quit [Ping timeout: 240 seconds]
ecloud has quit [Ping timeout: 250 seconds]
ecloud has joined #sandstorm
NhanH has quit [Ping timeout: 244 seconds]
NhanH has joined #sandstorm
Psy-Q_ has joined #sandstorm
strugee has quit [Ping timeout: 244 seconds]
kxra has quit [Ping timeout: 260 seconds]
tg` has joined #sandstorm
tg has quit [Ping timeout: 240 seconds]
tg` is now known as tg
Psy-Q has quit [Ping timeout: 252 seconds]
HalfEatenPie has quit [Ping timeout: 252 seconds]
strugee has joined #sandstorm
mattl has quit [Ping timeout: 258 seconds]
HalfEatenPie_ has joined #sandstorm
KCinJP has quit [Ping timeout: 258 seconds]
mattl has joined #sandstorm
KCinJP has joined #sandstorm
Telesight has joined #sandstorm
kxra has joined #sandstorm
uppermgmt has joined #sandstorm
Psy-Q_ has quit [Quit: ZNC - http://znc.in]
Psy-Q has joined #sandstorm
leomen has joined #sandstorm
derf- has quit [Quit: ZNC - http://znc.sourceforge.net]
derf- has joined #sandstorm
frigginglorious has joined #sandstorm
HalfEatenPie_ is now known as HalfEatenPie
HalfEatenPie has quit [Changing host]
HalfEatenPie has joined #sandstorm
jemc has joined #sandstorm
jemc has quit [Ping timeout: 244 seconds]
jemc has joined #sandstorm
jadewang has joined #sandstorm
jacksingleton has joined #sandstorm
<simonv3> wishlist: screenshot + upload + copied link to clipboard
<asheesh> via e.g. a command line tool?
<lukexj> i've noticed that this irc is dead a lot of times and active some times
<asheesh> Hi lukexj (-:
<asheesh> I guess I agree with that!
kecors has joined #sandstorm
<KevinMGranger> Desert winds come and go-- and with it, irc activity.
neynah has joined #sandstorm
jadewang has quit [Remote host closed the connection]
jadewang has joined #sandstorm
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
neynah has joined #sandstorm
neynah has quit [Client Quit]
neynah has joined #sandstorm
<leomen> Hi there! Has anyone here using ss with apache over https?
<dwrensha> I've only ever tried nginx
<leomen> Ah. I was trying to troubleshoot apache and getting it working over https :) If I get to work I will send you a example config then :)
<leomen> Ah! And thank you very much dw! Without your help I couldn't had made my wildcard works.
<leomen> Yeah. I got that sample here and it works fine, but without https =/
<leomen> So I'm working on the fist doc now to try and trace what might be wrong.
<dwrensha> ah
<dwrensha> once you get it working, I'm sure asheesh would appreciate a pull request to improve the docs :)
<leomen> Oh! I will keep it in mind and send him once I get it working :)
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
neynah has joined #sandstorm
<mrdomino> i,i i want a rocket.chat bot that will post the currently playing song on my groovebasin into my chat
<mrdomino> maybe that is an abuse of i,i but i'm more expressing a desire for this to exist than i am placing any expectation on any person to do it
<asheesh> : D re: docs improvements discussions
<asheesh> leomen: What are your specific symptoms?
<asheesh> That is to say, are you having trouble adding the right SSLCertificateFile stanzas to the right VirtualHost sections, and therefore e.g. getting a non-ssl listener on port 443?
<asheesh> In my dream world I can write scripts to automatically find everyone's problems of all kinds.
<leomen> Hi ash! I believe there is a problem with my certificate :)
<leomen> My http access is working fine.
<leomen> my https access shows me:
<leomen> An error occurred during a connection to ss.ifspmatao.edu.br. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
<asheesh> That usually means that you are listening on port 443 but speaking unencrypted HTTP.
<leomen> So maybe I'm making a reverse redirection?
<leomen> Send my https requests for http?
<asheesh> The VirtualHost must (a) have port 443 in it, and (b) must have "SSLEngine on" in it; see e.g. https://www.digicert.com/ssl-certificate-installation-ubuntu-server-with-apache2.htm
<asheesh> So first key question - do you have "SSLEngine On" within that VirtualHost? If not, have you tried adding it, and then seeing?
<asheesh> Second, I would not think so much about "redirection".
<asheesh> It's often easier to set things up like Apache in pieces, so that each piece can be tested individually.
<leomen> Ok, I have two virtual hosts. One is setted to pot 80 and another to port 443.
<leomen> Maybe my mistake is that I should only have one virtualhost set as 443?
<asheesh> So far I think you're OK.
<asheesh> Within the :443 one, do you do: "SSLEngine On"?
<leomen> <VirtualHost *:443>
<leomen> # Use this VirtualHost for example.com and wildcards.
<leomen> ServerName ss.ifspmatao.edu.br
<leomen> ServerAlias *.ss.ifspmatao.edu.br
<leomen> SSLEngine on
<leomen> SSLCertificateFile /etc/apache2/ssl/sandstorm.crt
<leomen> SSLCertificateKeyFile /etc/apache2/ssl/sandstorm.key
<leomen> That's my virtual host.
<asheesh> re: one thing at a time: What I would do is make sure that you can serve a HTTPS site from your Apache, even if it doesn't go to Sandstorm, just reads files from /var/www , and then in your browser you can confirm that HTTPS works, and then once that's true, set up the Sandstorm reverse proxying.
<asheesh> Interesting, yeah.
<leomen> OK, let me make it blank and be sure it is serving on https.
<asheesh> http://ss.ifspmatao.edu.br:443/ "works", so I think somehow you're not really speaking https on port 443.
<asheesh> Note that I said http://...:443/ not https://...:443/ !
<leomen> it seems exactly that.
<asheesh> It might be smart to remove the port 80 stuff and disable plain-HTTP for now, just to make the problem have fewer moving parts.
<asheesh> Get the one most essential/difficult part fixed, which is properly listening on HTTPS from the Apache server, and then re-add the other non-essential/non-hard parts.
<leomen> Ok. I made a dissite to my 80 virtual host.
n8a has quit [Ping timeout: 250 seconds]
<asheesh> "SSLEngine on" should really be enough to enable HTTPS for that VHost. Are you sure that VHost is enabled? And/or perhaps a default VHost is overriding that one.
<leomen> Ok. I took down my 80 listening.
<leomen> I will try to up a test page on https so we can make sure it's working.
<asheesh> Great. Keep mep posted.
<leomen> Okie Dokie
wolcen_ has joined #sandstorm
nwf has quit [Ping timeout: 264 seconds]
<leomen> OK, the virtual host wasn't really enabled.
<leomen> So now I have a http:// and a https:// working.
<leomen> https is serving my certificates also.
<asheesh> Yes!!!
<leomen> Now is there a way that I can force my users to use https?
<leomen> A redirect?
<leomen> This line, maybe?
<leomen> # By default, send all requests to Sandstorm over http://
<leomen> ProxyPass / http://localhost:6080/
<leomen> Ah, ok. I use it on my other webserver =D
<leomen> Feel relieved it's kind of a common practice haha
<asheesh> : D
wolcen_ has quit [Quit: Leaving]
kecors has quit [Quit: Leaving]
<leomen> Beautiful =D
<asheesh> BTW, if you're willing to chat by email, I'd love to learn more about how you're hoping to use your Sandstorm server, since it's always nice when we know more about that sort of thing. I'm asheesh@sandstorm.io fwiw.
<leomen> mailing you right now :)
<leomen> And now back to my wildcard host message hahahaha
<asheesh> neynah: ^
<asheesh> (context: neynah and I were discussing this week how to make that easier for people)
<leomen> WARNING: This server seems to have its WILDCARD_HOST misconfigured. Until you fix it, you will not be able to use any apps. You can read more info in the Sandstorm docs and in your browser's Javascript console. You'll need to adjust DNS, SSL/TLS certificates, or edit the sandstorm.conf file. If you see no information in the JS console, or wish to t
<leomen> est if you have fixed the problem, reload this page to re-run the test. If you're still having problems, please file an issue.
<leomen> Oh.
<asheesh> leomen: Yeah - if you look at the JS console, what error(s) do you see in red? You might need to reload the wildcard host test page to make it log the error.
<asheesh> Also I guess I should implement zarvox's idea that WILDCARD_HOST inherit the port number from BASE_URL thing.
<zarvox> asheesh: +1 ;)
<leomen> Ok, so for me to organize myself. I think i can help with some suggestions about how documentation could make it easier about hot to implement the https on self hosted servers :)
<asheesh> I'll be AFK a for little bit.
<leomen> Ok. I will answer your mail and see what's going wrong here haha
<leomen> Thank you very much for your help :)
leomen has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
leomen has joined #sandstorm
leomen has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
leomen has joined #sandstorm
leomen has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
leomen has joined #sandstorm
Telesight has quit [Remote host closed the connection]
<dwrensha> jparyani: is it possible to tell pip to pull from github rather than pypi?
<jparyani> yes, you can do `pip install https://github.com/jparyani/pycapnp/archive/develop.zip`. You might want to add a `--no-cache-dir` in there too just to be safe.
<zarvox> dwrensha: you can also clone pycapnp and "pip install path/to/pycapnp" if you anticipate potentially making changes to pycapnp to further debug
<dwrensha> "No module name 'Cython'"
<dwrensha> okay, I'll `pip install cython` first
<dwrensha> but i didn't need to do that when I did `pip install pycapnp` previously
sydney_u1tangle has joined #sandstorm
sydney_untangle has quit [Ping timeout: 250 seconds]
frigginglorious has quit [Quit: frigginglorious]
n8a has joined #sandstorm
<leomen> Guys, it's looking like my websocket isn't going up... I'm missing something but can't fint where =/
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
neynah has joined #sandstorm
<asheesh> Hi leomen !
<leomen> Hi =D
<asheesh> Does your HTTPS Apache2 reverse proxy have the RewriteCond stuff in https://github.com/sandstorm-io/sandstorm/blob/master/docs/administering/sample-config/apache-virtualhost.conf ?
<leomen> yep. It's like that: RewriteCond %{HTTP:Upgrade} !=websocket
<leomen> RewriteRule /(.*) http://localhost:6080/$1 [P,L]
<leomen> RewriteCond %{HTTP:Upgrade} !=websocket
<leomen> RewriteRule /(.*) http://localhost:6080/$1 [P,L]
<asheesh> The first one needs to be ws:// not http://
<leomen> RewriteCond %{HTTP:Upgrade} =websocket
<leomen> RewriteRule /(.*) ws://localhost:6080/$1 [P,L]
<asheesh> erm
<asheesh> never mind, what you have seems reasonable.
<leomen> Sorry, I got the second instance first hehe
<leomen> That's my virtual host:
<leomen> <VirtualHost *:443>
<leomen> # Use this VirtualHost for example.com and wildcards.
<leomen> ServerName ss.ifspmatao.edu.br
<leomen> ServerAlias *.ss.ifspmatao.edu.br
<leomen> SSLEngine On
leomen has quit [Excess Flood]
leomenz has joined #sandstorm
<leomenz> Woops. My message flooded the channel.
<leomenz> Have you got it?
<asheesh> Nope; try using a pastebin service like http://pastebin.com/ or paste.debian.net : )
<leomenz> :)
<asheesh> And you did sudo a2enmod proxy_wstunnel ?
<leomenz> yep. It turns this if I do it now:
<leomenz> root@ss:/etc/apache2/sites-available# a2enmod proxy_wstunnel
<leomenz> Considering dependency proxy for proxy_wstunnel:
<leomenz> Module proxy already enabled
<leomenz> Module proxy_wstunnel already enabled
<asheesh> For me, WebSockets seem to work OK. If you reload the page, does the problem go away?
<leomenz> No =/ I'm getting both warns about Wildcard and websocket =/
<asheesh> I do see the WILDCARD_HOST issue, but that's presumably because I haven't added your custom CA to my browser.
<asheesh> Interestingly anyone can go to https://ss.ifspmatao.edu.br/admin/ and trigger the self-test, so you can do that in an incognito window.
<leomenz> Do you want the certificate to test it properly?
<asheesh> I need to finish up something else unfortunately; for now, I propose you accept my word that the websockets test is passing for me, so I encourage you to focus on the wildcard host issue for now.
<asheesh> Anyway I must AFK a little; back in an hour or so.
<leomenz> yep. I generated the certificates through that.
<leomenz> Thank you for your attention :)
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<leomenz> My hands was trembling when I signed my certificates. It's all fine now ;)
leomenz has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<zarvox> dwrensha: thanks for catching https://github.com/sandstorm-io/sandstorm/pull/2106 - I'm curious if a misbehavior caused you to track it down, or if you managed to catch it through intense attention to detail