Time |
Nick |
Message |
00:57 |
|
marty_ joined #mojo |
00:58 |
|
sugar joined #mojo |
01:00 |
|
salva joined #mojo |
01:14 |
|
Janos joined #mojo |
01:27 |
|
jlaffaye joined #mojo |
02:06 |
|
sugar joined #mojo |
02:37 |
|
jlaffaye joined #mojo |
03:14 |
|
Janos joined #mojo |
03:19 |
|
noganex_ joined #mojo |
03:51 |
|
llorem joined #mojo |
05:04 |
|
dboehmer joined #mojo |
06:01 |
|
inokenty-w joined #mojo |
06:35 |
|
rshadow joined #mojo |
06:45 |
|
Vandal joined #mojo |
06:55 |
|
rshadow joined #mojo |
07:43 |
|
dod joined #mojo |
07:44 |
|
dod joined #mojo |
07:50 |
|
AndrewIsh joined #mojo |
08:20 |
|
janus joined #mojo |
08:20 |
|
Lee joined #mojo |
08:30 |
|
dod joined #mojo |
08:34 |
|
dod joined #mojo |
08:38 |
|
trone joined #mojo |
08:45 |
|
sugar joined #mojo |
08:55 |
|
janus joined #mojo |
08:56 |
|
osfabibisi joined #mojo |
09:01 |
|
foursixnine joined #mojo |
09:04 |
|
osfabibisi joined #mojo |
09:09 |
|
dod joined #mojo |
09:11 |
|
dod joined #mojo |
09:29 |
|
rshadow joined #mojo |
09:41 |
sri |
yea, i guess i like cherry mx red switches the most |
09:41 |
|
kes joined #mojo |
09:50 |
|
aborazmeh joined #mojo |
10:01 |
|
osfabibisi joined #mojo |
10:11 |
|
sugar joined #mojo |
10:11 |
|
foursixnine joined #mojo |
10:21 |
|
VVelox joined #mojo |
11:00 |
|
ashimema joined #mojo |
11:00 |
|
sugar joined #mojo |
11:13 |
|
sugar joined #mojo |
11:17 |
|
stryx` joined #mojo |
11:47 |
|
stryx` joined #mojo |
11:50 |
|
osfabibisi joined #mojo |
12:05 |
|
ashimema joined #mojo |
12:07 |
|
dotan_convos joined #mojo |
12:10 |
|
itaipu joined #mojo |
12:17 |
|
Dandre1 joined #mojo |
12:21 |
|
Dandre joined #mojo |
12:35 |
|
marty joined #mojo |
13:17 |
|
sugar joined #mojo |
13:34 |
|
tchaves joined #mojo |
13:36 |
|
gizmomathboy joined #mojo |
13:44 |
|
rshadow joined #mojo |
13:54 |
|
Janos joined #mojo |
14:15 |
|
sugar joined #mojo |
14:17 |
|
orev joined #mojo |
14:23 |
|
Pyritic joined #mojo |
14:27 |
|
gryphon joined #mojo |
14:37 |
|
rshadow joined #mojo |
14:41 |
|
FROGGS joined #mojo |
14:42 |
FROGGS |
hi |
14:42 |
purl |
que tal, FROGGS. |
14:42 |
FROGGS |
did someone already tried to reverse proxy websocket trafic? |
14:43 |
pink_mist |
yes |
14:43 |
pink_mist |
that's in the cookbook |
14:43 |
pink_mist |
for both apache and nginx reverse proxies |
14:45 |
FROGGS |
and for mojolicious reverse proxies? |
14:46 |
FROGGS |
I'm using this module: https://github.com/oetiker/mojolicious-plugin-reverseproxy/ |
14:47 |
FROGGS |
and want to reverse-prox to an onlyoffice server |
14:48 |
pink_mist |
uh, you'd probably need to hope that thing supports it, and then ask the author how to do it ... that's not a core mojo project |
14:48 |
|
itaipu joined #mojo |
14:49 |
pink_mist |
it's not really normal to use Mojolicious *as* a reverse proxy - normally you have something else that reverse proxies *to* Mojolicious |
15:05 |
FROGGS |
well, I *could* put an apache in front of both... |
15:07 |
FROGGS |
though I was hoping to let mojolicious be the reverse proxy, so that I could keep using my login mechanism |
15:07 |
|
asarch joined #mojo |
15:08 |
pink_mist |
... why can't you? |
15:12 |
FROGGS |
well, if apache would reverse prox /onlyoffice directly the that server, my mojo app would not be able to get its hands on it |
15:13 |
pink_mist |
ah, true |
15:15 |
pink_mist |
well, if you're lucky, oetiker might have made that plugin able to proxy websockets too |
15:16 |
pink_mist |
you'd haveto ask him though |
15:16 |
FROGGS |
I can do that :o) |
15:17 |
jberger |
that plugin is really simplistic |
15:18 |
jberger |
I mean, it might be possible to have be a repeater for websocket traffic (in much the same way that I do for my websocket-vnc bridge) but I can't imagine any of this being very efficient |
15:19 |
jberger |
my first thought would be to see if the reverse proxy can send the authentication request to the app |
15:19 |
jberger |
and a quick check found this for nginx: https://www.nginx.com/resources/admin-guide/restricting-access-auth-request/ |
15:20 |
jberger |
I'm not sure if that helps for your exact use-case |
15:20 |
FROGGS |
hmmm, it might very well apply to my scenario |
15:22 |
jberger |
is the websocket application a different application from your main one? |
15:22 |
jberger |
and if so are they both mojo-based? |
15:22 |
jberger |
because if yes to both you could mount the websocket application inside the standard one |
15:23 |
FROGGS |
my app also uses websockets, but the one I want to reverse proxy too is something else |
15:23 |
FROGGS |
not my own and not mojo |
15:23 |
jberger |
yeah, ok |
15:23 |
jberger |
makes sense |
15:23 |
FROGGS |
s/too/to/ |
15:24 |
jberger |
I think if it were me I'd try to make my front-facing reverse proxy (ie nginx or apache) do this diversion |
15:25 |
jberger |
but I think that's the hammer I'm currently holding so, maybe take that with a grain of salt |
15:25 |
FROGGS |
well, I tried to reduce that server chain in the past... |
15:25 |
jberger |
(see https://asyncthoughts.tumblr.com/post/157702503315/configuring-nginx-for-lets-encrypt for other example) |
15:26 |
|
Pyritic joined #mojo |
15:26 |
FROGGS |
but yeah, I'll probably put nginx or apache in front of it... |
15:26 |
FROGGS |
I have apache knowledge, but no nginx knowledge so far |
15:26 |
jberger |
FROGGS: I'm not saying I love the idea of adding websockets to oetiker's proxy, but I can't shake my mind from trying to think of the cleverest way to do it :-P |
15:27 |
pink_mist |
lol |
15:31 |
jberger |
actually, the frame event and send with arrayref form might just be all you need |
15:31 |
jberger |
(which would be the first practical use I've seen for either of those) |
15:32 |
FROGGS |
frame event? arrayref? |
15:32 |
jberger |
http://mojolicious.org/perldoc/Mojo/Transaction/WebSocket#frame |
15:32 |
jberger |
FROGGS: this isn't the user-level stuff, this would be in the proxy |
15:32 |
FROGGS |
ahh |
15:33 |
FROGGS |
I understand |
15:35 |
FROGGS |
so I'd have to register a handler near this position: https://github.com/oetiker/mojolicious-plugin-reverseproxy/ |
15:35 |
FROGGS |
err |
15:36 |
FROGGS |
https://github.com/oetiker/mojolicious-plugin-reverseproxy/blob/master/lib/Mojolicious/Plugin/ReverseProxy.pm#L57 |
15:36 |
FROGGS |
damn, github changed their interface |
15:36 |
|
rshadow joined #mojo |
15:40 |
|
sugar joined #mojo |
15:40 |
|
PryMar56 joined #mojo |
16:02 |
FROGGS |
huh, seems it is working now... |
16:02 |
FROGGS |
I still see some message that some of the websocket connections cannot be established, but the document editor works... |
16:05 |
FROGGS |
lol, that embedded powerpoint editor even supports fullscreen presentation mode... and it looks very sexy... |
16:06 |
jberger |
you'd probably want to check $tx->is_websocket |
16:06 |
FROGGS |
yeah, I guess so |
16:06 |
jberger |
but yeah, generally that's about where you'd do it |
16:06 |
jberger |
remember that the websocket handshake is just a GET |
16:07 |
FROGGS |
the GET is getting through, yes |
16:07 |
FROGGS |
then the upgrade happens and then it seems to work only somewhat |
16:07 |
jberger |
are you relaying both directions? |
16:08 |
FROGGS |
but yeah, taking notes... is_websocket, on frame... |
16:08 |
FROGGS |
most likely not |
16:08 |
jberger |
you'd need to subscribe to frame both from the server and the ua |
16:08 |
FROGGS |
only from client via mojo to onlyoffice |
16:08 |
jberger |
and pass the frame arrayref to the other party when the event is emitted |
16:08 |
FROGGS |
yeah, have to be man in the middle... hmmm |
16:09 |
jberger |
here was a similar thing |
16:09 |
jberger |
http://perltricks.com/article/212/2016/2/2/Get-an-in-browser-remote-desktop-with-Mojolicious-and-noVNC/ |
16:09 |
jberger |
that was bridging a websocket and a tcp connection |
16:10 |
jberger |
but it should have similar concepts in large part |
16:10 |
FROGGS |
ohh nice |
16:11 |
|
sugar joined #mojo |
16:11 |
FROGGS |
jberger: isnt there something missing in the code block? |
16:12 |
FROGGS |
look at the seventh line from bottom or so: vnc => |
16:13 |
jberger |
vnc is the template name there |
16:13 |
jberger |
you probably don't need that |
16:13 |
FROGGS |
I see |
16:13 |
jberger |
in fact you probably don't need that entire GET handler |
16:14 |
jberger |
I'm actually kinda surprised at myself |
16:14 |
jberger |
I try not to use fat commas for quoting in non-pair situations when I write tutorial articles |
16:15 |
jberger |
if you asked me to write that line again, I'd almost certainly write 'vnc', |
16:15 |
FROGGS |
I dont do that at all, it's confusing for others |
16:15 |
FROGGS |
aye |
16:15 |
jberger |
I do it in my own code because I'm lazy |
16:16 |
jberger |
but I try not to do it where I'm trying to teach others, ooops |
16:16 |
FROGGS |
well, I have to maintain my code for years, so I try to write code that I understand after years without touching it... |
16:17 |
jberger |
I have no problem understanding it when I come back to it |
16:17 |
jberger |
but that's because long ago I pounded it into my head that a fat comma isn't a pair separator like javascripts : |
16:17 |
jberger |
in fact, I remember what did it for me |
16:18 |
jberger |
(and also what encouraged me not to do it in public spaces) |
16:18 |
jberger |
see the examples here: https://metacpan.org/pod/distribution/Inline-C/lib/Inline/C.pod |
16:19 |
jberger |
once you can parse that in your head, you won't confuse yourself with fat commas ever again :-P |
16:20 |
FROGGS |
well, I know what the fat comma does (or doesnt), but it is these things that *could* be an error when somebody else wrote it |
16:20 |
FROGGS |
that's why I do not (mis)use these things and hope that my code is easy to understand for others to |
16:21 |
jberger |
certainly a valid point, though I personally disagree. in my own code it is **only** a comma with a quoted left-hand side |
16:21 |
FROGGS |
so that there is no doubt about whether it was meant that way or just a typo/thinko/whatever |
16:21 |
jberger |
but since I know that isn't how most people see it, so I try not to let it leak out |
16:21 |
FROGGS |
sure |
16:22 |
|
itaipu joined #mojo |
16:22 |
jberger |
that Inline::C documentation is waaaayyyyy overboard though :P |
16:22 |
FROGGS |
when I would spot that pattern more than once in your code I'd not ask whether it is a typo :o) |
16:22 |
FROGGS |
:o) |
16:23 |
jberger |
also I think I see a doc bug there ;D |
16:23 |
preaction |
i've totally started doing things like: use Log::Any::Adapter Stderr =>; # Quote Stderr and leave it open for addt. args |
16:24 |
jberger |
preaction: I didn't say anything but I noticed that in your last talk |
16:26 |
preaction |
;) i specifically did it there because the next slide added `( log_level => 'info' )` ;) it's nice to keep the changes in code to a minimum, and changing `"Stderr",` to `Stderr => ( log_level => 'info' )` is a slightly bigger change |
16:26 |
preaction |
but then i did it and thought "huh, that's actually pretty nice. it implies there are more things i could do there" |
16:30 |
|
Pyritic joined #mojo |
16:35 |
litwol |
jberger: hello. i have a personal question/feedback. may i pm you about it ? |
16:35 |
jberger |
sure |
16:35 |
jberger |
thanks for asking |
16:38 |
|
sugar joined #mojo |
17:04 |
|
rshadow joined #mojo |
17:05 |
|
Pyritic joined #mojo |
17:08 |
|
rshadow joined #mojo |
17:12 |
|
Peppard joined #mojo |
17:18 |
|
ashimema joined #mojo |
17:19 |
|
stryx` joined #mojo |
17:28 |
|
tchaves joined #mojo |
17:31 |
|
rshadow joined #mojo |
17:40 |
|
lluad joined #mojo |
17:42 |
|
dod joined #mojo |
17:48 |
|
itaipu joined #mojo |
17:49 |
|
dod joined #mojo |
18:04 |
|
sugar joined #mojo |
18:27 |
|
odc joined #mojo |
18:31 |
|
Janos joined #mojo |
18:35 |
|
stryx` joined #mojo |
18:48 |
|
tchaves joined #mojo |
18:51 |
|
Pyritic joined #mojo |
18:54 |
|
mcsnolte joined #mojo |
19:00 |
|
cfedde joined #mojo |
19:41 |
|
sugar joined #mojo |
19:55 |
pink_mist |
https://twitter.com/mcwm/status/837003695330115590 makes me want to get a switch even more =) |
20:07 |
sri |
haha |
20:09 |
|
itaipu joined #mojo |
20:14 |
jberger |
I'm likely to get one |
20:14 |
jberger |
I kinda love zelda |
20:14 |
pink_mist |
yeah, same =) |
20:15 |
genio |
I do love zelda and metroid |
20:15 |
genio |
about the only games I really liked to play |
20:16 |
* sri |
still has too many games on steam he needs to finish first |
20:16 |
jberger |
I'm just trying to justify if $360 is too much for that one game |
20:16 |
genio |
indeed it is |
20:16 |
jberger |
I mean, we'd probably use it for other games somewhat, but we use our wii almost not at all anymore |
20:16 |
sri |
the game is huge an will prolly keep you busy for months though ;p |
20:16 |
jberger |
yeah, I saw that |
20:17 |
sri |
new mario game might be good too |
20:17 |
jberger |
oh, I do like mario too (who doesn't) |
20:17 |
jberger |
is that out right away? |
20:17 |
jberger |
I haven't heard as much about it |
20:17 |
genio |
I liked the side-scrolling marios |
20:19 |
|
miller joined #mojo |
20:27 |
jberger |
so I'm giving the April Chicago Vue.js talk! |
20:27 |
jberger |
https://www.meetup.com/Chicago-Vue-js/events/238120145 |
20:27 |
jberger |
kinda fun |
20:28 |
jberger |
I'll be talking about this one: https://gist.github.com/jberger/c4515eb8399f356736528dbc5af115f2 |
20:28 |
jberger |
though I'm going to alter it slightly to use signatures |
20:28 |
jberger |
since non-perlers will like that better |
20:29 |
sri |
jberger++ |
20:31 |
Grinnz |
https://twitter.com/Level3NOC/status/837373011179233280 |
20:31 |
Grinnz |
first S3, now level3 |
20:31 |
jberger |
woah |
20:33 |
pink_mist |
jberger: I think most *perlers* also do (at least if they can target a perl that supports those =)) |
20:33 |
|
kes joined #mojo |
20:33 |
Grinnz |
and if you can stomach the experimentalness |
20:33 |
Grinnz |
i'm thinking about using Function::Parameters instead |
20:34 |
Grinnz |
but it's kind of weird to use that for the sub keyword i guess |
20:35 |
jberger |
I could always use my insane Kavorka plugin ;-P |
20:35 |
jberger |
nah |
20:36 |
jberger |
actually it doesn't help this example at all anyway |
20:38 |
|
sugar joined #mojo |
21:05 |
|
sugar joined #mojo |
21:17 |
|
sugar joined #mojo |
21:32 |
* sri |
wonders what everybody does with spare steam keys |
21:39 |
Grinnz |
give em away, drop em somewhere as a free for all, dunno |
21:51 |
|
mmp joined #mojo |
21:52 |
|
jlaffaye_ joined #mojo |
21:54 |
|
jnap_ joined #mojo |
21:54 |
|
da5id_ joined #mojo |
21:55 |
|
khamsin_ joined #mojo |
21:55 |
|
litwol_ joined #mojo |
21:56 |
|
matt_ joined #mojo |
21:57 |
|
Dandre1 joined #mojo |
21:57 |
|
msestak_ joined #mojo |
21:58 |
|
dexteruk_ joined #mojo |
21:58 |
|
kivilahtio_ joined #mojo |
22:00 |
|
hahainternet joined #mojo |
22:00 |
|
itaipu joined #mojo |
22:03 |
|
cromedome joined #mojo |
22:11 |
|
Phil21 joined #mojo |
22:12 |
|
mbudde joined #mojo |
22:17 |
|
meredith joined #mojo |
22:20 |
|
sugar joined #mojo |
22:26 |
sri |
¯\_(ツ)_/¯ |
22:34 |
|
PopeFelix joined #mojo |
22:34 |
|
simcop2387 joined #mojo |
22:34 |
|
jabberwok joined #mojo |
22:34 |
|
noganex_ joined #mojo |
22:34 |
|
vicash joined #mojo |
22:34 |
|
khfeng joined #mojo |
22:34 |
|
genio joined #mojo |
22:34 |
|
mishanti1 joined #mojo |
22:34 |
|
schelcj joined #mojo |
22:34 |
|
mat joined #mojo |
22:34 |
|
Obbi joined #mojo |
22:34 |
|
mpapec joined #mojo |
22:34 |
|
Eke joined #mojo |
22:34 |
|
jesk joined #mojo |
22:34 |
|
plicease joined #mojo |
22:34 |
|
xdg joined #mojo |
22:34 |
|
purl joined #mojo |
22:34 |
|
yuni joined #mojo |
22:42 |
|
miller joined #mojo |
22:49 |
|
stryx` joined #mojo |
23:38 |
|
Janos joined #mojo |
23:52 |
litwol_ |
https://www.reddit.com/r/perl/comments/5v67d3/mojolicious_need_a_stepbystep_nonblocking_tutorial/?st=izt1px1j&sh=0081cbd5 |
23:52 |
litwol_ |
jberger: ^ :-D |
23:52 |
litwol_ |
more ppl demand update :) |
23:56 |
|
itaipu joined #mojo |
23:58 |
|
kwa joined #mojo |