These are chat archives for scytherswings/Plex-Board

5th
Apr 2017
Andrew Newell
@scytherswings
Apr 05 2017 01:46
Back!
Andrew Newell
@scytherswings
Apr 05 2017 01:59
I'm hoping to figure out what is causing the giant spam of undefined plex sessions in the navbar, i left one page up for yours and the navbar has taken over lol
Sean Vreeland
@seanvree
Apr 05 2017 02:24
whoa, wait a min
send me a screenshot of what MY PB looks in YOUR browser
make sure you hit refresh and close and reopen brosweer
may need to delete cookies and/or just do an ignito session
ensure you are on SSL
only THEN send me a sdreenshot buddy
I think we have a miscommunication bhere
Sean Vreeland
@seanvree
Apr 05 2017 02:29
also, if you get an AUTH prompt - FIRST try to just hit cancel and see what happens
if it's a noGO then open a new ignaito browser session and send the UN and PW I sent you before
UN: Admin
then the PW I sent you before
@scytherswings
Andrew Newell
@scytherswings
Apr 05 2017 02:30
Ahhh
Alrighty sorry i was on another screen heh
Did you run update.sh and then set the relative_url field in that config file ?
Andrew Newell
@scytherswings
Apr 05 2017 02:36
Screen Shot 2017-04-04 at 10.36.21 PM.png
Here’s the screenshot of what im seeing
Sean Vreeland
@seanvree
Apr 05 2017 02:46
yup
okay, good
so what's the issue with the navbar you're seeing?
Andrew Newell
@scytherswings
Apr 05 2017 02:46
Ahh it only happens when you have live updating
Sean Vreeland
@seanvree
Apr 05 2017 02:46
right
okay, yeah
so why am I NOT getting live updating right now?
Andrew Newell
@scytherswings
Apr 05 2017 02:46
I’ve made a few changes with the hope that I’ll fix it
So you’re not getting live updates right now because the hard-coded path in the javascript doesn’t know that you’re behind a proxy
Sean Vreeland
@seanvree
Apr 05 2017 02:47
gotcha
okay
Andrew Newell
@scytherswings
Apr 05 2017 02:47
So I made a change to generate the javascript with a url that should include whatever reverse proxies are in front of it
Sean Vreeland
@seanvree
Apr 05 2017 02:47
okay, let me try that in a sec then
master branch?
Andrew Newell
@scytherswings
Apr 05 2017 02:47
If you pull dev, there’s a new field in that config file
Sean Vreeland
@seanvree
Apr 05 2017 02:48
or have you pushed yet?
Andrew Newell
@scytherswings
Apr 05 2017 02:48
Only in dev
not master yet
Sorry to keep switching it up on you haha
i’ll keep us on dev for any work we coordinate on
Sean Vreeland
@seanvree
Apr 05 2017 02:48
yeah, that's killing me
cuz, I have to copy over all the db files
I can't checkout with the way I have it set up on the live server
without loosing everything
Andrew Newell
@scytherswings
Apr 05 2017 02:49
That update script i made should save your database
ahh
those manual tweaks
Sean Vreeland
@seanvree
Apr 05 2017 02:49
yup
Andrew Newell
@scytherswings
Apr 05 2017 02:49
could you show me your git status ?
I’d like to see what files you had to change, I know it’s in the windows wiki page we made
but i’m curious
Sean Vreeland
@seanvree
Apr 05 2017 02:49

c:\Plex-Board>git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

    modified:   Gemfile
    modified:   Gemfile.lock
    modified:   runServer.sh
    modified:   server_config.yml

Untracked files:
(use "git add <file>..." to include in what will be committed)

    db/production.sqlite3.default
    nohup.out
    runServer.bat
    runServer.exe

no changes added to commit (use "git add" and/or "git commit -a")

c:\Plex-Board>

Andrew Newell
@scytherswings
Apr 05 2017 02:49
I’d like to see if we can make it so that you don’t have to do any manual tweaks
Ahh I should add that server_config.yml to the .gitignore
that way it will stop trying to override it
Sean Vreeland
@seanvree
Apr 05 2017 02:50
yup
Andrew Newell
@scytherswings
Apr 05 2017 02:51
what other changes did you have to make to the Gemfile again?
actually the git diff would be pretty handy if you could get that output
if not no biggie
Sean Vreeland
@seanvree
Apr 05 2017 02:56

c:\Plex-Board>git diff
warning: LF will be replaced by CRLF in Gemfile.lock.
The file will have its original line endings in your working directory.
diff --git a/Gemfile b/Gemfile
index 292375f..4852035 100644
--- a/Gemfile
+++ b/Gemfile
@@ -26,6 +26,7 @@ gem 'geocoder', '~> 1.4.3'
gem 'tzinfo', '~> 1.2.3'
gem 'lograge', '~> 0.4.1'
gem 'browserlog', git: 'https://github.com/scytherswings/browserlog'
+gem 'tzinfo-data'

group :development, :test do
gem 'spring', '~> 2.0.1'
diff --git a/Gemfile.lock b/Gemfile.lock
index 54efa1b..77dd11e 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -80,6 +80,7 @@ GEM
i18n (~> 0.5)
faraday (0.12.0.1)
multipart-post (>= 1.2, < 3)

  • ffi (1.9.18-x86-mingw32)
    forecast_io (2.0.1)
    faraday
    hashie
    @@ -133,7 +134,7 @@ GEM
    multi_json (1.12.1)
    multipart-post (2.0.0)
Andrew Newell
@scytherswings
Apr 05 2017 02:57
c:\Plex-Board>git diff
warning: LF will be replaced by CRLF in Gemfile.lock.
The file will have its original line endings in your working directory.
diff --git a/Gemfile b/Gemfile
index 292375f..4852035 100644
--- a/Gemfile
+++ b/Gemfile
@@ -26,6 +26,7 @@ gem 'geocoder', '~> 1.4.3'
 gem 'tzinfo', '~> 1.2.3'
 gem 'lograge', '~> 0.4.1'
 gem 'browserlog', git: 'https://github.com/scytherswings/browserlog'
+gem 'tzinfo-data'

 group :development, :test do
   gem 'spring', '~> 2.0.1'
diff --git a/Gemfile.lock b/Gemfile.lock
index 54efa1b..77dd11e 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -80,6 +80,7 @@ GEM
       i18n (~> 0.5)
     faraday (0.12.0.1)
       multipart-post (>= 1.2, < 3)
+    ffi (1.9.18-x86-mingw32)
     forecast_io (2.0.1)
       faraday
       hashie
@@ -133,7 +134,7 @@ GEM
     multi_json (1.12.1)
     multipart-post (2.0.0)
oh sweet
I can fix your tzdata issue
Andrew Newell
@scytherswings
Apr 05 2017 03:02
ok
I just pushed a bunch of changes which should hopefully help you out
though the Gemfile.lock will still conflict I bet due to ffi (1.9.18-x86-mingw32) which I think is windows specific
Andrew Newell
@scytherswings
Apr 05 2017 03:14
@seanvree
Sean Vreeland
@seanvree
Apr 05 2017 03:28
got it, trying in a few
@scytherswings
Andrew Newell
@scytherswings
Apr 05 2017 03:28
Aiight cool
Hopefully after my changes there should be a lot less conflicts
ideally you should only have to kill the server, run ./update.sh and then start the server
Off-topic, but check out this uptime
heheh
Screen Shot 2017-04-04 at 11.31.21 PM.png
Sean Vreeland
@seanvree
Apr 05 2017 03:34
wait, do I need to checkout to dev?
yeah, that's dope
fuck linux kills windows in that shit
I've tried fucking with grafana but it's so hard getting it working on winodws
@scytherswings
Andrew Newell
@scytherswings
Apr 05 2017 03:36
Yeah checkout dev for me if you would
you shouldn’t have to play with tzdata stuff anymore
Sean Vreeland
@seanvree
Apr 05 2017 03:50
checkout complete
so, i'm not changing ANYTHING right?
Andrew Newell
@scytherswings
Apr 05 2017 03:50
what’s your git diff look like now?
Sean Vreeland
@seanvree
Apr 05 2017 03:50
cheater
ha
check logs
running server
Andrew Newell
@scytherswings
Apr 05 2017 03:51
did you run update.sh to get these changes?
Sean Vreeland
@seanvree
Apr 05 2017 03:51
fuck, no I just stashed my changes
Andrew Newell
@scytherswings
Apr 05 2017 03:51
lol that works too
Sean Vreeland
@seanvree
Apr 05 2017 03:51
then ran git branch
was on dev now
then git pull
now starting the service
Andrew Newell
@scytherswings
Apr 05 2017 03:52
ruh roh
what’s your server_config.yml look like?
actually
i can check logs
lol
they’re getting big though
Sean Vreeland
@seanvree
Apr 05 2017 03:53
ha, I know. I'll clear them out after this one
Andrew Newell
@scytherswings
Apr 05 2017 03:53
idk if I roll the logs. there’s a gem for it, i’ve used it before i think
Sean Vreeland
@seanvree
Apr 05 2017 03:54
intresting
I don't have a server.yml file anymore

c:\Plex-Board>git pull
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/scytherswings/Plex-Board
1f3b99d..01ed49f dev -> origin/dev
Updating 1f3b99d..01ed49f
Fast-forward
serverSetup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

c:\Plex-Board>git diff
diff --git a/Gemfile.lock b/Gemfile.lock
index ed91ca5..3d3fbcc 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -80,6 +80,7 @@ GEM
i18n (~> 0.5)
faraday (0.12.0.1)
multipart-post (>= 1.2, < 3)

  • ffi (1.9.18-x86-mingw32)
    forecast_io (2.0.1)
    faraday
    hashie
    @@ -135,6 +136,8 @@ GEM
    netrc (0.11.0)
    nokogiri (1.7.1)
    mini_portile2 (~> 2.1.0)
  • nokogiri (1.7.1-x86-mingw32)
  • mini_portile2 (~> 2.1.0)
    parallel (1.11.1)
    parallel_tests (2.14.0)
    parallel
    @@ -173,6 +176,11 @@ GEM
    http-cookie (>= 1.0.2, < 2.0)
    mime-types (>= 1.16, < 4.0)
    netrc (~> 0.8)
  • rest-client (2.0.1-x86-mingw32)
  • ffi (~> 1.9)
  • http-cookie (>= 1.0.2, < 2.0)
  • mime-types (>= 1.16, < 4.0)
server is running
Andrew Newell
@scytherswings
Apr 05 2017 03:56
Hmmmmm, seems like we have platform differences in the gemfile.lock
Sean Vreeland
@seanvree
Apr 05 2017 03:56
yup
so, previously I would delete the gemlock file
Andrew Newell
@scytherswings
Apr 05 2017 03:57
Actually that’s one of the things that Rails projects need to make sure consumers use the same versions of their dependencies
I can fiddle with platform stuff in a bit
Sean Vreeland
@seanvree
Apr 05 2017 03:57
so yeah. I don't have a YML file anywhere
Andrew Newell
@scytherswings
Apr 05 2017 03:57

so, previously I would delete the gemlock file

Ah yeah that works too

so yeah. I don't have a YML file anywhere

It should be called example.server_config.yml

oh shit
yeah since it was in git before i added it to .gitignore when i deleted the file it would have deleted yours too
after you pulled
well, at least that will only happen once
now that the example file is named example.server_config.yml
Sean Vreeland
@seanvree
Apr 05 2017 03:59
yup
okay
Andrew Newell
@scytherswings
Apr 05 2017 03:59
so you can just copy and rename it
Sean Vreeland
@seanvree
Apr 05 2017 03:59
hang tight
stopping server
okay, here we go

c:\Plex-Board>git branch

  • dev
    master

c:\Plex-Board>git pull
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 4), reused 4 (delta 2), pack-reused 0
Unpacking objects: 100% (6/6), done.
From https://github.com/scytherswings/Plex-Board
01ed49f..4c5cb61 dev -> origin/dev
Updating 01ed49f..4c5cb61
Fast-forward
.travis.yml | 10 ++++++++++
1 file changed, 10 insertions(+)

c:\Plex-Board>git diff
diff --git a/Gemfile.lock b/Gemfile.lock
index ed91ca5..3d3fbcc 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -80,6 +80,7 @@ GEM
i18n (~> 0.5)
faraday (0.12.0.1)
multipart-post (>= 1.2, < 3)

  • ffi (1.9.18-x86-mingw32)
    forecast_io (2.0.1)
    faraday
    hashie
    @@ -135,6 +136,8 @@ GEM
    netrc (0.11.0)
    nokogiri (1.7.1)
    mini_portile2 (~> 2.1.0)
  • nokogiri (1.7.1-x86-mingw32)
  • mini_portile2 (~> 2.1.0)
    parallel (1.11.1)
    parallel_tests (2.14.0)
    parallel
    @@ -173,6 +176,11 @@ GEM
    http-cookie (>= 1.0.2, < 2.0)
    mime-types (>= 1.16, < 4.0)
    netrc (~> 0.8)
  • rest-client (2.0.1-x86-mingw32)
  • ffi (~> 1.9)
  • http-cookie (>= 1.0.2, < 2.0)
  • mime-types (>= 1.16, < 4.0)
starting service
Andrew Newell
@scytherswings
Apr 05 2017 04:04
Cool
thanks
btw, if you want to force a re-fetch of images, you can go into public/ and delete the imagesfolder. It will automatically be re-created and the images fetched again
I wanted to fix that image fetching logic next
after we figure out how to run it behind a reverse proxy
Sean Vreeland
@seanvree
Apr 05 2017 04:06
soooo
looks good
Andrew Newell
@scytherswings
Apr 05 2017 04:06
Ok so you need to run update.sh or serverSetup.sh to recompile your assets
Sean Vreeland
@seanvree
Apr 05 2017 04:06
however,
yup
Andrew Newell
@scytherswings
Apr 05 2017 04:06
i want to get live updating
what’s your server_config.yml look like?
Sean Vreeland
@seanvree
Apr 05 2017 04:06
me too
ha

You will probably want to configure these values to whatever you expect to hit Plex-Board as. e.g. http://plexdashboard.whatever.com/

If you're running behind a reverse-proxy, e.g. http://bob.com/plex-board/, then the relative_root field should be configured.

In the above example the relative_root would be set to: '/plex-board'

Please note that the format above does matter, prefix with the '/' and don't use a trailing slash.

relative_root:

You shouldn't need to include any url paths in the web_host and asset_host fields.

web_host: http://192.168.1.20:3000
asset_host: https://seanvree.com/plexstatus

Andrew Newell
@scytherswings
Apr 05 2017 04:07
Oh goodness
Sean Vreeland
@seanvree
Apr 05 2017 04:07
oh shit
Andrew Newell
@scytherswings
Apr 05 2017 04:07
if you want to paste someting wrap it in “```"
Sean Vreeland
@seanvree
Apr 05 2017 04:07
those are reversed
are they?
Andrew Newell
@scytherswings
Apr 05 2017 04:08
lol
you should only need to set relative_root
set it to /plexstatus
Sean Vreeland
@seanvree
Apr 05 2017 04:08
wow, I missed that too
Andrew Newell
@scytherswings
Apr 05 2017 04:08
I’ll re-order that file so that parameter is easier to see
Sean Vreeland
@seanvree
Apr 05 2017 04:08
ha, sorry man
okay, let's try again
ha ha
Andrew Newell
@scytherswings
Apr 05 2017 04:08
no problem, bad layout on my part
Sean Vreeland
@seanvree
Apr 05 2017 04:08
yeah, easy to miss that
add some spaces or something
you want me to try update.sh?
was the web-host and asset host reversed as well?
Andrew Newell
@scytherswings
Apr 05 2017 04:10
no those you should be able to leave at their defaults if you set relative_root
I’ve changed the order in the file now, give update.sh a go
Sean Vreeland
@seanvree
Apr 05 2017 04:10
got it
stopping service
Andrew Newell
@scytherswings
Apr 05 2017 04:11
oops i changed the order in my local copy
hurr durr
Sean Vreeland
@seanvree
Apr 05 2017 04:11
ha
i'm rubbing off on ya man
Andrew Newell
@scytherswings
Apr 05 2017 04:12
lol typing faster than I can think
Sean Vreeland
@seanvree
Apr 05 2017 04:12
samsies
Andrew Newell
@scytherswings
Apr 05 2017 04:13
# You will probably want to configure these values to whatever you expect to hit Plex-Board as. e.g. http://plexdashboard.whatever.com/
# If you're running behind a reverse-proxy, e.g. http://bob.com/plex-board/, then the relative_root field should be configured.
# In the above example the relative_root would be set to: '/plex-board'
# Please note that the format above does matter, prefix with the '/' and don't use a trailing slash.
# You shouldn't need to include any url paths in the web_host and asset_host fields.


relative_root: /plexstatus
web_host: http://0.0.0.0:3000
asset_host: http://0.0.0.0:3000
That’s what your file should look like
hopefully
run serverSetup.sh too just to be sure the assets get regenerated once you’ve changed that file
Sean Vreeland
@seanvree
Apr 05 2017 04:14
got it
git pull
Andrew Newell
@scytherswings
Apr 05 2017 04:15
Gitter won’t do git pull for you :trollface:
Sean Vreeland
@seanvree
Apr 05 2017 04:15
ha

c:\Plex-Board>git branch

  • dev
    master

c:\Plex-Board>git pull
Already up-to-date.

c:\Plex-Board>sh serversetup.sh
Installing Gems. This can take a bit of time...
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 12.0.0
Using i18n 0.8.1
Using json 1.8.6
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using execjs 2.7.0
Using sass 3.4.23
Using thor 0.19.4
Using bundler 1.14.6
Using concurrent-ruby 1.0.5
Using coffee-script-source 1.12.2
Using unf_ext 0.0.7.2 (x86-mingw32)
Using multipart-post 2.0.0
Using ffi 1.9.18 (x86-mingw32)
Using hashie 3.5.5
Using multi_json 1.12.1
Using geocoder 1.4.3
Using netrc 0.11.0
Using parallel 1.11.1
Using puma 3.8.2
Using rdoc 4.3.0
Using tilt 2.0.7
Using sqlite3 1.3.13 (x86-mingw32)
Using tzinfo 1.2.3
Using nokogiri 1.7.1 (x86-mingw32)
Using rack-test 0.6.3
Using mime-types 3.1
Using autoprefixer-rails 6.7.7.1
Using uglifier 3.1.13
Using sprockets 3.7.1
Using coffee-script 2.4.1
Using unf 0.1.4
Using faraday 0.12.0.1
Using sdoc 0.4.2
Using activesupport 4.2.5
Using tzinfo-data 1.2017.2
Using loofah 2.0.3
Using mail 2.6.4
Using bootstrap-sass 3.3.7
Using domain_name 0.5.20170223
Using forecast_io 2.0.1
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.5
Using jbuilder 2.6.3
Using rails-html-sanitizer 1.0.3
Using http-cookie 1.0.3
Using rails-dom-testing 1.0.8
Using activejob 4.2.5
Using activerecord 4.2.5
Using strip_attributes 1.8.0
Using rest-client 2.0.1 (x86-mingw32)
Using actionview 4.2.5
Using actionpack 4.2.5
Using actionmailer 4.2.5
Using railties 4.2.5
Using sprockets-rails 3.2.0
Using simple_form 3.4.0
Using jquery-rails 4.3.1
Using coffee-rails 4.2.1
Using lograge 0.4.1
Using rails 4.2.5
Using sass-rails 5.0.6
Using turbolinks 2.5.3
Using browserlog 0.0.3 from https://github.com/scytherswings/browserlog (at master@7b4eabc)
Using jquery-turbolinks 2.1.0
Bundle complete! 39 Gemfile dependencies, 72 gems now installed.
Gems in the groups development and test were not installed.
Use bundle show [gemname] to see where a bundled gem is installed.

Removing old secrets.yml file if it exists. Creating a fresh one with new secrets
RAILS_ENV=production

Creating and setting up the database for production
db/production.sqlite3 already exists
== 20170404205426 RemoveLastSeenFromServices: migrating =======================
-- remove_column(:services, :last_seen)
-> 0.0163s
== 20170404205426 RemoveLastSeenFromServices: migrated (0.0167s) ==============

Compiling assets
I, [2017-04-04T21:17:43.631684 #9768] INFO -- : Removed c:/Plex-Board/public/assets
I, [2017-04-04T21:17:43.742702 #9768] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot
I, [2017-04-04T21:17:43.801582 #9768] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot.gz
I, [2017-04-04T21:17:43.808451 #9768] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-d985cda034eab4c9f2403976f8d171fbf6efc4b593107d8b1401e5b6daa46295.svg
I, [2017-04-04T21:17:43.809433 #9768] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-d985cda034eab4c9f2403976f8d171fbf6efc4b593107d8b1401e5b6daa46295.svg.gz
I, [2017-04-04T21:17:44.475707 #9768] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf
I, [2017-04-04T21:17:44.476688 #9768] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf.gz
I, [2017-04-04T21:17:44.482576 #9768] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-a26394f7ede100ca118eff2eda08596275a9839b959c226

Starting server
Andrew Newell
@scytherswings
Apr 05 2017 04:21
sweet
Sean Vreeland
@seanvree
Apr 05 2017 04:22
server running
Andrew Newell
@scytherswings
Apr 05 2017 04:22
ooh she’s pissed
Sean Vreeland
@seanvree
Apr 05 2017 04:22
ha, yup
Andrew Newell
@scytherswings
Apr 05 2017 04:23
Screen Shot 2017-04-05 at 12.22.44 AM.png
Sean Vreeland
@seanvree
Apr 05 2017 04:23
yeah, that's what I was thinking with the yml file
soooo
this is totally me
Andrew Newell
@scytherswings
Apr 05 2017 04:23
ahhhhh
shooot
Sean Vreeland
@seanvree
Apr 05 2017 04:23
IIS SSL offloading
Andrew Newell
@scytherswings
Apr 05 2017 04:23
I didn’t think about telling it to use https
Sean Vreeland
@seanvree
Apr 05 2017 04:23
yup
so, this is where things will change per user
Andrew Newell
@scytherswings
Apr 05 2017 04:23
Tricky shit
yeah
Sean Vreeland
@seanvree
Apr 05 2017 04:23
depending on how the have their webserver set up
in MY case (IIS)
Andrew Newell
@scytherswings
Apr 05 2017 04:24
I’ll put in a note in that example
Sean Vreeland
@seanvree
Apr 05 2017 04:24
I have SSL offloading enalbed
yup
Andrew Newell
@scytherswings
Apr 05 2017 04:24
to mention https
if that works
You’ll need to regenerate the assets since I bake those URLs in, serverSetup.sh should do it
Sean Vreeland
@seanvree
Apr 05 2017 04:24
so, if I type httP NO S - IIS will convert that to what I have configured in my revesre proxy
right
Andrew Newell
@scytherswings
Apr 05 2017 04:24
ahhhhh
good to know
Sean Vreeland
@seanvree
Apr 05 2017 04:24
well, let me thingk about this
yeah
umm
Andrew Newell
@scytherswings
Apr 05 2017 04:25
I bet nginx and apache might do similar things in a setup like this
Sean Vreeland
@seanvree
Apr 05 2017 04:25
yeah, I know they do, but the key things are two fold:
and they are similare in Ngix and IIS
1)
how you write your "REWRITE" rules for reverse proxy
here, let me copy and paste my config
from IIS
so you can see
sooo
here's what it LOOKS like NOW

<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="phpinfo.php" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/(.*)" />
<action type="Rewrite" value="http{R:1}://seanvree.com/{R:2}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
</configuration>

but I have to change that to add in the base URI, right?
at least that's what I have to do for radarr and sonarr
Andrew Newell
@scytherswings
Apr 05 2017 04:27
>
 <?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                <add value="phpinfo.php" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.htm" />
                <add value="index.html" />
                <add value="iisstart.htm" />
                <add value="default.aspx" />
                <add value="index.php" />
            </files>
        </defaultDocument>
        <rewrite>
            <rules>
                <rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
                </rule>
            </rules>
            <outboundRules>
                <rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
                    <match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/(.*)" />
                    <action type="Rewrite" value="http{R:1}://seanvree.com/{R:2}" />
                </rule>
                <preConditions>
                    <preCondition name="ResponseIsHtml1">
                        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                    </preCondition>
                </preConditions>
            </outboundRules>
        </rewrite>
        <urlCompression doStaticCompression="false" doDynamicCompression="false" />
    </system.webServer>
</configuration>
my eyes
Sean Vreeland
@seanvree
Apr 05 2017 04:27
fuck my life
ha I'm new to gitter
Andrew Newell
@scytherswings
Apr 05 2017 04:27
hahaha
Sean Vreeland
@seanvree
Apr 05 2017 04:28
so I'll post what radarr looks like
>

<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="ReverseProxyInboundRuleRadarr" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="https://192.168.1.20:7879/radarr/{R:1}" />
<serverVariables>
<set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" />
<set name="HTTP_ACCEPT_ENCODING" value="" />
</serverVariables>
</rule>
</rules>

        <outboundRules>
            <clear />
            <rule name="Restore Encoding" preCondition="Restore HTTP_ACCEPT_ENCODING}" enabled="true">
                <match serverVariable="HTTP_ACCEPT_ENCODING" pattern="^(.+)" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
                <action type="Rewrite" value="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" />
            </rule>

            <rule name="ReverseProxyOutboundRadarr" preCondition="ResponseIsHtml1" patternSyntax="ECMAScript">
                <match filterByTags="A, Area, Base, Form, Head, IFrame, Img, Input, Link, Script" pattern="^http(s)?://192.168.1.20:7879/radarr/(.*)" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
                <action type="Rewrite" value="http{R:1}://seanvree.com/radarr/{R:2}" />
            </rule>

            <preConditions>
                <remove name="Restore HTTP_ACCEPT_ENCODING}" />
                <remove name="ResponselsHTML1" />
                <remove name="ResponseIsHtml1" />
                <remove name="NeedsRestoringAcceptEncoding" />
                <preCondition name="ResponseIsHtml1">
                    <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                </preCondition>
                <preCondition name="Restore HTTP_ACCEPT_ENCODING}">
                    <add input="{RESPONSE_CONTENT_TYPE}" pattern=".+" />
                </preCondition>
            </preConditions>
        </outboundRules>

    </rewrite>
    <defaultDocument>
        <files>
            <remove value="phpinfo.php" />
            <remove value="index.html" />
            <add value="phpinfo.php" />
        </files>
    </defaultDocument>
</system.webServer>

</configuration>
>

fuck I did that wrong
oh well
SO, ignore the precondisitons
Andrew Newell
@scytherswings
Apr 05 2017 04:29
hahahaahahaha
Sean Vreeland
@seanvree
Apr 05 2017 04:29
but you'll see that before {r:2}
that's where the Base URI would go
Andrew Newell
@scytherswings
Apr 05 2017 04:29
Hmmmmmmmmm
Sean Vreeland
@seanvree
Apr 05 2017 04:29
so I THINK I need to change my rewrite rule to now add plexstatus, since that's what PB is looking for, correct?
so, my inbound rule would llooke like this:
Andrew Newell
@scytherswings
Apr 05 2017 04:30
Ehhhhhhhhh, I think so
This is really good debugging
When we figure this out we should put together a wiki page
Sean Vreeland
@seanvree
Apr 05 2017 04:30
< <rules>
<rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://192.168.1.20:3000/PlexStatus/{R:1}" />
</rule> >
fuck
WTF
<
        <rules>
            <rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
                <match url="(.*)" />
                <action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
            </rule>
>
Andrew Newell
@scytherswings
Apr 05 2017 04:31
Just put ````` in front
Sean Vreeland
@seanvree
Apr 05 2017 04:31
wait, one more tipe
Andrew Newell
@scytherswings
Apr 05 2017 04:31
goddammit
Sean Vreeland
@seanvree
Apr 05 2017 04:31
ha
Andrew Newell
@scytherswings
Apr 05 2017 04:31
i can’t escape it
hahahah
it’s three backticks
Sean Vreeland
@seanvree
Apr 05 2017 04:31
\\
Andrew Newell
@scytherswings
Apr 05 2017 04:31
\```
Sean Vreeland
@seanvree
Apr 05 2017 04:31
   <rules>
        <rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
            <match url="(.*)" />
            <action type="Rewrite" url="http://192.168.1.20:3000/plexstatus/{R:1}" />
        </rule>
bam
ha
Andrew Newell
@scytherswings
Apr 05 2017 04:32
the struggle is real
Sean Vreeland
@seanvree
Apr 05 2017 04:32
srsly
Andrew Newell
@scytherswings
Apr 05 2017 04:32
hahahaha
Sean Vreeland
@seanvree
Apr 05 2017 04:32
I need a fucking drink and some blow
ha
anyway
Andrew Newell
@scytherswings
Apr 05 2017 04:32
Hahaha
I drank my fridge dry
Sean Vreeland
@seanvree
Apr 05 2017 04:32
so, does this make sense?
Andrew Newell
@scytherswings
Apr 05 2017 04:32
:(
Sean Vreeland
@seanvree
Apr 05 2017 04:32
i'm not sure...but that's my hunch
Andrew Newell
@scytherswings
Apr 05 2017 04:32
Yeah, that change should be live now right?
Sean Vreeland
@seanvree
Apr 05 2017 04:32
easy to chanve
wait
what change?
Andrew Newell
@scytherswings
Apr 05 2017 04:33
OK so your server_config.yml should look like this now
# You will probably want to configure these values to whatever you expect to hit Plex-Board as. e.g. http://plexdashboard.whatever.com/
# If you're running behind a reverse-proxy, e.g. http://bob.com/plex-board/, then the relative_root field should be configured.
# In the above example the relative_root would be set to: '/plex-board'
# Please note that the format above does matter, prefix with the '/' and don't use a trailing slash.
# You shouldn't need to include any url paths in the web_host and asset_host fields.


relative_root: /plexstatus
web_host: https://0.0.0.0:3000
asset_host: https://0.0.0.0:3000
oh shit
fuck ass dick tits
yeah that’s going to confuse the whole thing
Sean Vreeland
@seanvree
Apr 05 2017 04:34
yes, that's what it does
ha
umm
Andrew Newell
@scytherswings
Apr 05 2017 04:34
because you’re supposed to strip off https and only talk http internally
Sean Vreeland
@seanvree
Apr 05 2017 04:34
it all comes down the base URI
Andrew Newell
@scytherswings
Apr 05 2017 04:34
but I was using this file to bake in the URI for the javascript
Sean Vreeland
@seanvree
Apr 05 2017 04:34
right
Andrew Newell
@scytherswings
Apr 05 2017 04:34
so it expected it all to be the same
Sean Vreeland
@seanvree
Apr 05 2017 04:34
uhh, hang tight man
I need a smoke to think about this
Andrew Newell
@scytherswings
Apr 05 2017 04:35
I can change how i bake that URL
Sean Vreeland
@seanvree
Apr 05 2017 04:35
but yes, the server that is live now has those changes
Andrew Newell
@scytherswings
Apr 05 2017 04:35
cool i’ll take a look
Sean Vreeland
@seanvree
Apr 05 2017 04:35
git diff looks like this:

\\ c:\Plex-Board>git diff
diff --git a/Gemfile.lock b/Gemfile.lock
index ed91ca5..3d3fbcc 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -80,6 +80,7 @@ GEM
i18n (~> 0.5)
faraday (0.12.0.1)
multipart-post (>= 1.2, < 3)

  • ffi (1.9.18-x86-mingw32)
    forecast_io (2.0.1)
    faraday
    hashie
    @@ -135,6 +136,8 @@ GEM
    netrc (0.11.0)
    nokogiri (1.7.1)
    mini_portile2 (~> 2.1.0)
  • nokogiri (1.7.1-x86-mingw32)
  • mini_portile2 (~> 2.1.0)
    parallel (1.11.1)
    parallel_tests (2.14.0)
    parallel
    @@ -173,6 +176,11 @@ GEM
    http-cookie (>= 1.0.2, < 2.0)
    mime-types (>= 1.16, < 4.0)
    netrc (~> 0.8)
  • rest-client (2.0.1-x86-mingw32)
  • ffi (~> 1.9)
  • http-cookie (>= 1.0.2, < 2.0)
  • mime-types (>= 1.16, < 4.0)
  • netrc (~> 0.8)
    ruby-progressbar (1.8.1)
    safe_yaml (1.0.4)
    sass (3.4.23)
    @@ -203,6 +211,7 @@ GEM
    activesupport (>= 4.0)
    sprockets (>= 3.0.0)
    sqlite3 (1.3.13)
  • sqlite3 (1.3.13-x86-mingw32)
    strip_attributes (1.8.0)
    activemodel (>= 3.0, < 6.0)
    term-ansicolor (1.5.0)
    @@ -222,6 +231,7 @@ GEM
    unf (0.1.4)
    unf_ext
    unf_ext (0.0.7.2)
  • unf_ext (0.0.7.2-x86-mingw32)
    vcr (3.0.3)
    webmock (2.3.2)
    addressable (>= 2.3.6)
    @@ -230,6 +240,7 @@ GEM

    PLATFORMS
    ruby

  • x86-mingw32

    DEPENDENCIES
    autoprefixer-rails (~> 6.7.7.1)
    (END)

Andrew Newell
@scytherswings
Apr 05 2017 04:36
CTRL+Enter to send the message when you’re in the fucky ``` editor
keeps catching me
Sean Vreeland
@seanvree
Apr 05 2017 04:37
ALSO
think about this
Andrew Newell
@scytherswings
Apr 05 2017 04:37
I think I have a simple solution actually
but go first
heh
Sean Vreeland
@seanvree
Apr 05 2017 04:37
the whole 0.0.0.0 thing DOESN"T work in windows
so I have to change that to the webserver IP which is 192.168.1.1 OR localhost
correction: 192.168.1.20
so, the actual PB service is running on HTTP://192.168.1.20:3000
hence the rewrite url on the IIS server: \\
<action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
Andrew Newell
@scytherswings
Apr 05 2017 04:39
Interesting
hmmm
Sean Vreeland
@seanvree
Apr 05 2017 04:40
yeah, that's easy note to make a change in windows directions
that will HAVE to be a windows branch thing
I've had to do that will all these linux based shit
Andrew Newell
@scytherswings
Apr 05 2017 04:40
Good news is that my simple solution will go back to using relative urls, I’ll just prepend the relative_root value when i bake the JS. that way the actual host part and protocol can change
Sean Vreeland
@seanvree
Apr 05 2017 04:40
windows doesn't recognize 0.0.0.0
they use 127.0.0.1 or Localhost
Andrew Newell
@scytherswings
Apr 05 2017 04:41
I think localhost doesn’t work for *nix because I think it will only respond to connections originating on the host machine
Could be wrong though
Sean Vreeland
@seanvree
Apr 05 2017 04:43
so I THINK my serverconfig needs to be this:
\\
relative_root: /plexstatus
web_host: https://seanvree.com
asset_host: http://192.168.1.20:3000
AS long as PB adds the base URL "Plexstatus"
needs to add that base URI to all requests
so there's two issues here:
1) SSL offloading
and
2)
Base URI config on the webserver AND PB config
Andrew Newell
@scytherswings
Apr 05 2017 04:45
Right
I’m trying to mitigate the SSL offloading by not encoding full URLs
Sean Vreeland
@seanvree
Apr 05 2017 04:45
well, hang tihgt
gotta take a smoke break
got another point to make in a sec
Andrew Newell
@scytherswings
Apr 05 2017 04:48
Lol alrighty
Sean Vreeland
@seanvree
Apr 05 2017 04:51
Since you don't have SSL native on the site. Then the user just has to make that change in their web.config file
So... My web.config file on the server would like like this
Andrew Newell
@scytherswings
Apr 05 2017 04:52
Hmmm
I’m trying to see what people normally do for reverse proxies and ssl offloading
Sean Vreeland
@seanvree
Apr 05 2017 04:56
yeah
i'll find you a resource
hang tihgt
foudn it
it's long, but what i'm talking about is here:
step 7 on that page
so, nomrally if your site suported SSL, the rewrte rule would look like this:
Andrew Newell
@scytherswings
Apr 05 2017 04:58
looking
Sean Vreeland
@seanvree
Apr 05 2017 05:00
\\
<action type="Rewrite" url="https://192.168.1.20:3000/plexstatus/{R:1}" />
but I need to remove the S obvis
but the OUTBOUND URL has to offload so it looks like this:
\\
<action type="Rewrite" value="http{R:1}://seanvree.com/plexstatus/{R:2}" />
so the R1 would convert the non-http traffic FROM PB back to the webserver using webserver's certs
so it's like a reverse ssl offload WITH reverse proxy
make sense?
Andrew Newell
@scytherswings
Apr 05 2017 05:03
Right, give me a minute
Sean Vreeland
@seanvree
Apr 05 2017 05:03
coo
I'll give you a min to chew on that
lol
Andrew Newell
@scytherswings
Apr 05 2017 05:03
lol well I understand the issue, it’s just that I have to figure out a way to tell javascript these details
and that stuff is statically precompiled
Sean Vreeland
@seanvree
Apr 05 2017 05:04
can PB add the base URI right now?
Andrew Newell
@scytherswings
Apr 05 2017 05:04
right now it always tries to just go to /notifications which breaks mounting the app under a relative url like bob.com/sometthing/
Sean Vreeland
@seanvree
Apr 05 2017 05:04
then it would REDIRECT to https://192.168.1.20:3000/plexstatus ?
that's what needs to happen
so that way, the webserver would be able to understand outbound traffic that came from PB after */plexstatus
Andrew Newell
@scytherswings
Apr 05 2017 05:07
Arrrggggghhhhh
I understand the issue, but all of the solutions have caveats or are ugly. I want to have users change things in one place and have it just fucking work
Sean Vreeland
@seanvree
Apr 05 2017 05:08
ha, it's actually easy man
trust me, this is normal
ANY webserver on any OS:
1) ensure local base URI is set in PB
aka "relative root"
then on webserver ensure reverse proxy on webserver inclues that relative root on the rewrite rule: */plexstatus/{R:1}" />
so that's standard
then from there the SSL thing gets just a tad tricky
jujst gotta make sure inbound rule is passing HTTP and NOT HTTPS
however, outbound rule needs both
depending on how they are accesing their roob webserver
that's it
Andrew Newell
@scytherswings
Apr 05 2017 05:12
It would be simpler if P-B never knew that it was mounted under a relative root
and the reverse proxy would strip that portion out and add it back in for every response
Sean Vreeland
@seanvree
Apr 05 2017 05:12
right, the problem with that is this:
if your site adds URIs after for say config, then the server will give you a 500 error
IE: *\all_services
Andrew Newell
@scytherswings
Apr 05 2017 05:14
errr
Sean Vreeland
@seanvree
Apr 05 2017 05:14
so you would have to mask that
Andrew Newell
@scytherswings
Apr 05 2017 05:16
I might have a solution but I don’t like it
their windows portion is way off tho
ha
Andrew Newell
@scytherswings
Apr 05 2017 05:18
server {
  listen 80;
  server_name 127.0.0.1;

  location /first/ {
    root /home/hector/webapps/first/public;
    passenger_base_uri /first/;

    proxy_pass http://127.0.0.1:3000/;
    proxy_set_header Host $host;
  }
  location /second/ {
    root /home/hector/webapps/second/public;
    passenger_base_uri /second/;

    proxy_pass http://127.0.0.1:3001/;
    proxy_set_header Host $host;
  } 

}
nginx is so much simpler
lolol
that has two rails apps mounted under different directories
Sean Vreeland
@seanvree
Apr 05 2017 05:22
yeah
it is
Andrew Newell
@scytherswings
Apr 05 2017 05:24
Idk what the caveats are
I’m working on a change that should allow rails to know about where it’s mounted, as well as baking the javascript correctly with the right relative URL
Andrew Newell
@scytherswings
Apr 05 2017 05:45
OK
Sean Vreeland
@seanvree
Apr 05 2017 05:46
waiting on you buddy
LOL
jk
Andrew Newell
@scytherswings
Apr 05 2017 05:46
I’ve pushed a change that should make rails use the relative_root internally
hahaha
what this means
is that http://1.2.3.whatever:3000 will no longer respond to anything if you set relative_root
if that value is set, then you must always hit the server under that path
meaning http://1.2.3.whatever:3000/plex-board is what you’d use if that was your relative_root
Sean Vreeland
@seanvree
Apr 05 2017 05:47
right
that's fine
that's what I would expect
Andrew Newell
@scytherswings
Apr 05 2017 05:48
Ok good heheh
also
the scripts have been updated to handle this stuff by default
so it’ll create server_config.yml if it doesn’t exist
and it’ll precompile correctly based on what’s set in server_config.yml
using relative URLs
Sean Vreeland
@seanvree
Apr 05 2017 05:50
got it
let me know when
Andrew Newell
@scytherswings
Apr 05 2017 05:51
Hit that update.sh
should take care of most of it
Sean Vreeland
@seanvree
Apr 05 2017 05:51
are yOUUUUUU sure?
Andrew Newell
@scytherswings
Apr 05 2017 05:51
I wouldn’t put money on it
but
yeah
lol
Sean Vreeland
@seanvree
Apr 05 2017 05:51
ha, okay
here goes
Imma clear the logs
have to do a git pull or nah?
Andrew Newell
@scytherswings
Apr 05 2017 05:52
yeah git pull
well
update will do taht for you
Sean Vreeland
@seanvree
Apr 05 2017 05:52
well, that's why I"m asking
server stopped
clearing logs
\\

C:\WINDOWS\system32>cd c:\plex-board

c:\Plex-Board>sh update.sh
Pulling down the latest for the current branch
remote: Counting objects: 24, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 24 (delta 16), reused 19 (delta 11), pack-reused 0
Unpacking objects: 100% (24/24), done.
From https://github.com/scytherswings/Plex-Board
ff6f1a3..23813a4 dev -> origin/dev
Updating ff6f1a3..23813a4
Fast-forward
.../javascripts/notification_handler.js.coffee.erb | 6 ++++--
config.ru | 14 +++++++++++++-
example.server_config.yml | 2 +-
serverSetup.sh | 22 ++++++++++++++++++----
4 files changed, 36 insertions(+), 8 deletions(-)
Executing the serverSetup.sh script
update.sh: line 5: .: serverSetup.sh: file not found

c:\Plex-Board>

ERROR: update.sh: line 5: .: serverSetup.sh: file not found
@scytherswings
umm
Andrew Newell
@scytherswings
Apr 05 2017 05:55
oh noes
Sean Vreeland
@seanvree
Apr 05 2017 05:55
sooo, this is a windows thing
hang tight
looking
see you'll notice it didn't write to the log
what I was talking about earlier
let me look at the script
Andrew Newell
@scytherswings
Apr 05 2017 05:55
These bash scripts only spit shit to the console, yeah
Sean Vreeland
@seanvree
Apr 05 2017 05:56
yup
so this won't work on windows:
echo "Executing the serverSetup.sh script"
. serverSetup.sh
needs to say SH serversetup.sh
imma change it and see
hang tight
wait
ohhh
kk
got it
Andrew Newell
@scytherswings
Apr 05 2017 05:57
. is an alias for source
Sean Vreeland
@seanvree
Apr 05 2017 05:57
yup
no go windows
lol
ha
hang tight
Andrew Newell
@scytherswings
Apr 05 2017 05:57
I can change it
lol
Sean Vreeland
@seanvree
Apr 05 2017 05:57
testing
na, just write that one down for windows
Andrew Newell
@scytherswings
Apr 05 2017 05:57
well it’s an alias
Sean Vreeland
@seanvree
Apr 05 2017 05:57
yuup
Andrew Newell
@scytherswings
Apr 05 2017 05:57
easy to change
Sean Vreeland
@seanvree
Apr 05 2017 05:58

c:\Plex-Board>sh update.sh
Pulling down the latest for the current branch
Already up-to-date.
Executing the serverSetup.sh script
update.sh: line 5: .: /usr/bin/sh: cannot execute binary file

c:\Plex-Board>

so all that stuff won't work on windows
wich is fine
let's add that DUE OUT
NO auto update on windows
that's fine
small thing we can fix later
soooo
that means I have to run sh serversetup.sh manuall after running update.sh
becaue update.sh worked pulling down the git pull
so that's good
Andrew Newell
@scytherswings
Apr 05 2017 05:59
wait how have you been running the other shell scripts?
Sean Vreeland
@seanvree
Apr 05 2017 05:59
I can actually maek a window script really easy
ha ha ha
hang tight
i can maybe show you in RDC sometime
too tried right now
Andrew Newell
@scytherswings
Apr 05 2017 05:59
cygwin right?
Sean Vreeland
@seanvree
Apr 05 2017 05:59
well
if you see my windows install instructions
CYGWIN windows install will add the PATH to windows
you know what that means?
that means you can run CYGWIN commands in the regular old dos window
so...
that's actually good about windows
all those tools I listed on my setup instructions, IF you install all those into windows and select YES to "ADD TO PATH"
it essentially makmes your windows dos console window a running linus
Andrew Newell
@scytherswings
Apr 05 2017 06:01
Hmmmmmmmmm, I guess it’s weird that I’m calling a script from inside a script
Sean Vreeland
@seanvree
Apr 05 2017 06:01
for example from the same dos command prompt I can run Python, pip, rupby choco, etc etc without having to open a bunch of new CMD prompts
yup
you're actually calling it three remvoed
in the snese of ruby
CMD calls pythong
Pythong calls ruby
ruby calls whateve rthe fuck
etc etc etc
Andrew Newell
@scytherswings
Apr 05 2017 06:02
lol ruby is written in C
Sean Vreeland
@seanvree
Apr 05 2017 06:02
whatever
you get my poing
Andrew Newell
@scytherswings
Apr 05 2017 06:02
hehehehe
Sean Vreeland
@seanvree
Apr 05 2017 06:02
point
soo i'm all updated
I think

c:\Plex-Board>sh serversetup.sh
Installing Gems. This can take a bit of time...
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 12.0.0
Using i18n 0.8.1
Using json 1.8.6
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using execjs 2.7.0
Using sass 3.4.23
Using thor 0.19.4
Using bundler 1.14.6
Using concurrent-ruby 1.0.5
Using coffee-script-source 1.12.2
Using unf_ext 0.0.7.2 (x86-mingw32)
Using multipart-post 2.0.0
Using ffi 1.9.18 (x86-mingw32)
Using hashie 3.5.5
Using multi_json 1.12.1
Using geocoder 1.4.3
Using netrc 0.11.0
Using parallel 1.11.1
Using puma 3.8.2
Using rdoc 4.3.0
Using tilt 2.0.7
Using sqlite3 1.3.13 (x86-mingw32)
Using tzinfo 1.2.3
Using nokogiri 1.7.1 (x86-mingw32)
Using rack-test 0.6.3
Using mime-types 3.1
Using autoprefixer-rails 6.7.7.1
Using uglifier 3.1.13
Using sprockets 3.7.1
Using coffee-script 2.4.1
Using unf 0.1.4
Using faraday 0.12.0.1
Using sdoc 0.4.2
Using activesupport 4.2.5
Using tzinfo-data 1.2017.2
Using loofah 2.0.3
Using mail 2.6.4
Using bootstrap-sass 3.3.7
Using domain_name 0.5.20170223
Using forecast_io 2.0.1
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.5
Using jbuilder 2.6.3
Using rails-html-sanitizer 1.0.3
Using http-cookie 1.0.3
Using rails-dom-testing 1.0.8
Using activejob 4.2.5
Using activerecord 4.2.5
Using strip_attributes 1.8.0
Using rest-client 2.0.1 (x86-mingw32)
Using actionview 4.2.5
Using actionpack 4.2.5
Using actionmailer 4.2.5
Using railties 4.2.5
Using sprockets-rails 3.2.0
Using simple_form 3.4.0
Using jquery-rails 4.3.1
Using coffee-rails 4.2.1
Using lograge 0.4.1
Using rails 4.2.5
Using sass-rails 5.0.6
Using turbolinks 2.5.3
Using browserlog 0.0.3 from https://github.com/scytherswings/browserlog (at master@7b4eabc)
Using jquery-turbolinks 2.1.0
Bundle complete! 39 Gemfile dependencies, 72 gems now installed.
Gems in the groups development and test were not installed.
Use bundle show [gemname] to see where a bundled gem is installed.

Destroying tmp folder to clear caches etc.

Removing old secrets.yml file if it exists. Creating a fresh one with new secrets.
RAILS_ENV=production

server_config.yml exists, not creating.
Creating and setting up the database for production
db/production.sqlite3 already exists

Compiling assets
I, [2017-04-04T23:00:08.874664 #26856] INFO -- : Removed c:/Plex-Board/public/assets
I, [2017-04-04T23:00:08.980104 #26856] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot
I, [2017-04-04T23:00:09.100062 #26856] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot.gz
I, [2017-04-04T23:00:09.111838 #26856] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-d985cda034eab4c9f2403976f8d171fbf6efc4b593107d8b1401e5b6daa46295.svg
I, [2017-04-04T23:00:09.112820 #26856] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-d985cda034eab4c9f2403976f8d171fbf6efc4b593107d8b1401e5b6daa46295.svg.gz
I, [2017-04-04T23:00:09.737008 #26856] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf
I, [2017-04-04T23:00:09.737991 #26856] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf.gz
I, [2017-04-04T23:00:09.756635 #26856] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-a26394f7ede100ca118eff2eda08596275a9839b959c226e15439557a5a80742.woff
I, [2017-04-04T23:00:09.770374 #26856] INFO -- : Writing c:/Plex-Board/public/assets/glyphicons-halflings-regular-fe185d11a49676890d47bb783312a0cda5a44c4039214094e7957b4c040ef11c.woff2

Andrew Newell
@scytherswings
Apr 05 2017 06:03
okay excellent
Sean Vreeland
@seanvree
Apr 05 2017 06:03
I, [2017-04-04T23:00:03.143350 #11624] INFO -- : Setting web_host to: https://seanvree.com
I, [2017-04-04T23:00:03.143350 #11624] INFO -- : Setting asset_host to: http://192.168.1.20:3000
I, [2017-04-04T23:00:03.143350 #11624] INFO -- : Setting relative_root to: /plexstatus
I, [2017-04-04T23:00:08.309333 #26856] INFO -- : Setting web_host to: https://seanvree.com
I, [2017-04-04T23:00:08.310315 #26856] INFO -- : Setting asset_host to: http://192.168.1.20:3000
I, [2017-04-04T23:00:08.310315 #26856] INFO -- : Setting relative_root to: /plexstatus
starting server
refresh the log page
Andrew Newell
@scytherswings
Apr 05 2017 06:04
k
Sean Vreeland
@seanvree
Apr 05 2017 06:04
wait, was there any change in format to server_config ?
I see it kept my file
mine looks like this:
relative_root: /plexstatus
web_host: https://seanvree.com
asset_host: http://192.168.1.20:3000
right?
Andrew Newell
@scytherswings
Apr 05 2017 06:05
change web_host to match asset_host
Sean Vreeland
@seanvree
Apr 05 2017 06:05
you sure?
Andrew Newell
@scytherswings
Apr 05 2017 06:05
Yeah
Sean Vreeland
@seanvree
Apr 05 2017 06:05
kk
relative_root: /plexstatus
web_host: http://192.168.1.20:3000
asset_host: http://192.168.1.20:3000
starting server
Andrew Newell
@scytherswings
Apr 05 2017 06:05
looks good, that should work
probably
Sean Vreeland
@seanvree
Apr 05 2017 06:06
I think your'e wrong
ha
server is up
Andrew Newell
@scytherswings
Apr 05 2017 06:06
502 land for me
errr
your proxy setup
Sean Vreeland
@seanvree
Apr 05 2017 06:06
YUP
okay
soo
Andrew Newell
@scytherswings
Apr 05 2017 06:06
you’ll need to always point it at /plexstatus
Sean Vreeland
@seanvree
Apr 05 2017 06:06
I got it
hang tight
check here:
so yeah
Andrew Newell
@scytherswings
Apr 05 2017 06:08
ok
Sean Vreeland
@seanvree
Apr 05 2017 06:09
reconfiguring IIS
Andrew Newell
@scytherswings
Apr 05 2017 06:09
So something is still directing things to the root url
Sean Vreeland
@seanvree
Apr 05 2017 06:09
for base URI
nope
I got it
hang
this was supposed to happen
stopping PB
current web.config for IIS looks like this:
<

<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="phpinfo.php" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/(.*)" />
<action type="Rewrite" value="http{R:1}://seanvree.com/{R:2}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
</configuration>

<<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="phpinfo.php" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/(.*)" />
<action type="Rewrite" value="http{R:1}://seanvree.com/{R:2}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
</configuration>
>

how the fuck am I not doing that right

\\<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="phpinfo.php" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/(.*)" />
<action type="Rewrite" value="http{R:1}://seanvree.com/{R:2}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
</configuration>

\\

<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="phpinfo.php" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/(.*)" />
<action type="Rewrite" value="http{R:1}://seanvree.com/{R:2}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
</configuration>

WTF am I doing wrong
Andrew Newell
@scytherswings
Apr 05 2017 06:11
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                <add value="phpinfo.php" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.htm" />
                <add value="index.html" />
                <add value="iisstart.htm" />
                <add value="default.aspx" />
                <add value="index.php" />
            </files>
        </defaultDocument>
        <rewrite>
            <rules>
                <rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
                </rule>
            </rules>
            <outboundRules>
                <rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
                    <match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/(.*)" />
                    <action type="Rewrite" value="http{R:1}://seanvree.com/{R:2}" />
                </rule>
                <preConditions>
                    <preCondition name="ResponseIsHtml1">
                        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                    </preCondition>
                </preConditions>
            </outboundRules>
        </rewrite>
        <urlCompression doStaticCompression="false" doDynamicCompression="false" />
    </system.webServer>
</configuration>
gotta use backticks
Sean Vreeland
@seanvree
Apr 05 2017 06:11
WTF is a bactick?
Andrew Newell
@scytherswings
Apr 05 2017 06:11
tilde key
next to ESC
Sean Vreeland
@seanvree
Apr 05 2017 06:11
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                <add value="phpinfo.php" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.htm" />
                <add value="index.html" />
                <add value="iisstart.htm" />
                <add value="default.aspx" />
                <add value="index.php" />
            </files>
        </defaultDocument>
        <rewrite>
            <rules>
                <rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://192.168.1.20:3000/{R:1}" />
                </rule>
            </rules>
            <outboundRules>
                <rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
                    <match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/(.*)" />
                    <action type="Rewrite" value="http{R:1}://seanvree.com/{R:2}" />
                </rule>
                <preConditions>
                    <preCondition name="ResponseIsHtml1">
                        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                    </preCondition>
                </preConditions>
            </outboundRules>
        </rewrite>
        <urlCompression doStaticCompression="false" doDynamicCompression="false" />
    </system.webServer>
</configuration>
yay
okay, so that's what it looks like for a non-URI setup
chaning it to this:
Andrew Newell
@scytherswings
Apr 05 2017 06:14
<rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://192.168.1.20:3000/plexstatus/{R:1}" />
                </rule>
            </rules>
            <outboundRules>
                <rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
                    <match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/plexstatus/(.*)" />
                    <action type="Rewrite" value="http{R:1}://seanvree.com/plexstatus/{R:2}" />
                </rule>
Is that what you’re going for? ^ I might have double-added the path thing
Sean Vreeland
@seanvree
Apr 05 2017 06:14
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                <add value="phpinfo.php" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.htm" />
                <add value="index.html" />
                <add value="iisstart.htm" />
                <add value="default.aspx" />
                <add value="index.php" />
            </files>
        </defaultDocument>
        <rewrite>
            <rules>
                <rule name="ReverseProxyInboundPlexStatus" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://192.168.1.20:3000/plexstatus/{R:1}" />
                </rule>
            </rules>

            <outboundRules>
                <rule name="ReverseProxyOutboundPlexStatus" preCondition="ResponseIsHtml1">
                    <match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.20:3000/(.*)" />
                    <action type="Rewrite" value="http{R:1}://seanvree.com/plexstatus/{R:2}" />
                </rule>
                <preConditions>
                    <preCondition name="ResponseIsHtml1">
                        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                    </preCondition>
                </preConditions>
            </outboundRules>
        </rewrite>
        <urlCompression doStaticCompression="false" doDynamicCompression="false" />
    </system.webServer>
</configuration>
my nigga
yup
here we go
Andrew Newell
@scytherswings
Apr 05 2017 06:15
kk let me know when it’s up
Sean Vreeland
@seanvree
Apr 05 2017 06:15
see how the inbound doesn't have SSL, but the outbond has either
restarting IIS
Andrew Newell
@scytherswings
Apr 05 2017 06:15
ah, interesting
I suppose yeah, makes sense
rails shouldn’t terminate SSL
in this instance
Sean Vreeland
@seanvree
Apr 05 2017 06:16
yup, that's reverse SSL offloading with reverse proxy
fancy shit if this works man
Andrew Newell
@scytherswings
Apr 05 2017 06:16
i fucking hope it works
Sean Vreeland
@seanvree
Apr 05 2017 06:16
like, headphones and sabnzbd haven't event figured this out
Andrew Newell
@scytherswings
Apr 05 2017 06:16
i’m beat
Sean Vreeland
@seanvree
Apr 05 2017 06:16
me too man
Andrew Newell
@scytherswings
Apr 05 2017 06:16
hahaha whaat?
really?
Sean Vreeland
@seanvree
Apr 05 2017 06:16
yup
brutal
iv'e tried to tell them all this
but they won't list
Andrew Newell
@scytherswings
Apr 05 2017 06:16
man, so we’re lightyears ahead and yet still behind
hahah
Sean Vreeland
@seanvree
Apr 05 2017 06:17
making sure I"m not getting any errors on IIS
have a log of shit running
need to make sure the win enviroment is good
so I'm not fucking you over
lol
Andrew Newell
@scytherswings
Apr 05 2017 06:17
lol
Sean Vreeland
@seanvree
Apr 05 2017 06:18
IIS running:
clearing PB logs
Andrew Newell
@scytherswings
Apr 05 2017 06:19
that’s a lot of shit
Sean Vreeland
@seanvree
Apr 05 2017 06:19
STARTING PB
monitor logs
Andrew Newell
@scytherswings
Apr 05 2017 06:19
lol
sonofabitch
refreshing logs
Sean Vreeland
@seanvree
Apr 05 2017 06:21
MY NIGGA!
Andrew Newell
@scytherswings
Apr 05 2017 06:21
not sure how much is reverse proxy and how much is our server_config.yml
Sean Vreeland
@seanvree
Apr 05 2017 06:21
yes!
worked buddy!
Andrew Newell
@scytherswings
Apr 05 2017 06:21
waa
Sean Vreeland
@seanvree
Apr 05 2017 06:21
small bug
yup
check it
close broswer
open NEW IGONIGTO session
Andrew Newell
@scytherswings
Apr 05 2017 06:21
Screen Shot 2017-04-05 at 2.21.20 AM.png
Sean Vreeland
@seanvree
Apr 05 2017 06:22
blob
youre' missing someing buddy
hit that at the top of your broser to the right of the addy bar
Andrew Newell
@scytherswings
Apr 05 2017 06:22
errr
Sean Vreeland
@seanvree
Apr 05 2017 06:22
chill bruh
Andrew Newell
@scytherswings
Apr 05 2017 06:22
i think the assets need to be regenerated
Sean Vreeland
@seanvree
Apr 05 2017 06:22
this is expected
true, but ti's working man
live updates
and you see the xcodes at the top?
you understand why that happened?
Andrew Newell
@scytherswings
Apr 05 2017 06:23
i enabled the scripts
but it’s not loading for me yet
Sean Vreeland
@seanvree
Apr 05 2017 06:23
yup, mixed content
what's your inpsect look like?
oh shit
C:/Ruby23/lib/ruby/gems/2.3.0/bundler/gems/browserlog-7b4eabc2649b/lib/browserlog/selective_logger.rb:28:in call_app' railties (4.2.5) lib/rails/rack/logger.rb:20:inblock in call'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in block in tagged' activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:intagged'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in tagged' railties (4.2.5) lib/rails/rack/logger.rb:20:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.5) lib/rack/methodoverride.rb:22:incall'
rack (1.6.5) lib/rack/runtime.rb:18:in call' activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in call' rack (1.6.5) lib/rack/sendfile.rb:113:incall'
railties (4.2.5) lib/rails/engine.rb:518:in call' railties (4.2.5) lib/rails/application.rb:165:incall'
rack (1.6.5) lib/rack/urlmap.rb:66:in block in call' rack (1.6.5) lib/rack/urlmap.rb:50:ineach'
rack (1.6.5) lib/rack/urlmap.rb:50:in call' puma (3.8.2) lib/puma/configuration.rb:224:incall'
puma (3.8.2) lib/puma/server.rb:600:in handle_request' puma (3.8.2) lib/puma/server.rb:435:inprocess_client'
puma (3.8.2) lib/puma/server.rb:299:in block in run' puma (3.8.2) lib/puma/thread_pool.rb:120:inblock in spawn_thread'
umm, hang on this is ME i think
I think this is IIYYAS
live updating!
hang tight
Andrew Newell
@scytherswings
Apr 05 2017 06:25
browserlog is mad, that shouldn’t be happening, it’s not doing dick right now,
idk how it’s doing anything currently
Sean Vreeland
@seanvree
Apr 05 2017 06:26
wait, let me test something
Andrew Newell
@scytherswings
Apr 05 2017 06:26
Screen Shot 2017-04-05 at 2.24.52 AM.png
Sean Vreeland
@seanvree
Apr 05 2017 06:26
errrr fuck
Andrew Newell
@scytherswings
Apr 05 2017 06:26
here’s what I’m seeing with https
Sean Vreeland
@seanvree
Apr 05 2017 06:26
waaaaiiiit
what?
I'm not seeing that
what did you type to get to the page?
somehow the private ip of the asset host is leaking through, what if you change your server_config.yml file to match this
Sean Vreeland
@seanvree
Apr 05 2017 06:27
umm, hang on
4application-f8aba3e….js:5 Updating Active Streams
seanvree.com/:1 Mixed Content: The page at 'https://seanvree.com/plexstatus/' was loaded over HTTPS, but requested an insecure stylesheet 'http://192.168.1.20:3000/plexstatus/assets/application-759aaedca5806c2ec3d770ca9ca53e7fbfc48be4dbcd578692dbf715904971ae.css'. This content should also be served over HTTPS.
4application-f8aba3e….js:5 Updating Active Streams
no it's the rewrite rule
Ohhhh SHIT
I see
fuck me
Andrew Newell
@scytherswings
Apr 05 2017 06:28
oh
Sean Vreeland
@seanvree
Apr 05 2017 06:28
okay
soooo
let me think
Andrew Newell
@scytherswings
Apr 05 2017 06:29
I was thinking that some of these URLs are leaking through
Sean Vreeland
@seanvree
Apr 05 2017 06:29
nah
not even close
hang on
yeah, this was me
hang tight
Sean Vreeland
@seanvree
Apr 05 2017 06:38
almnost done
Andrew Newell
@scytherswings
Apr 05 2017 06:38
Might fall asleep now, it’s 2:30 am
Sean Vreeland
@seanvree
Apr 05 2017 06:39
pussy
Andrew Newell
@scytherswings
Apr 05 2017 06:40
im ok with this
lol
Sean Vreeland
@seanvree
Apr 05 2017 06:43
K, if this doesn't work we'll call it a night
and if it does work
we'll call it a night
lol
clearing logs
Andrew Newell
@scytherswings
Apr 05 2017 06:43
yeah
Sean Vreeland
@seanvree
Apr 05 2017 06:43
restarting IIS
Andrew Newell
@scytherswings
Apr 05 2017 06:46
reverse proxy is pointing to PlexStatus not plexstatus
k I gotta get to bed, sorry mate
Ping me on here and I’ll try and respond sometime in the morning
or at lunch
when I have some free time
cya
Sean Vreeland
@seanvree
Apr 05 2017 06:50
kkk
kk
it's working
FYI
sleep tight brotha
Sean Vreeland
@seanvree
Apr 05 2017 08:31
Good morning buddy
We did it
it works
small little bugs but check it when you get up
Sean Vreeland
@seanvree
Apr 05 2017 21:43
Dude!
Found a new name!
MONITARR
Andrew Newell
@scytherswings
Apr 05 2017 22:32
hahaha
that was suggested for PlexPy i thought
gotta catch up on messages and emails
Sean Vreeland
@seanvree
Apr 05 2017 22:35
for sho
if NOT, let's snag it
it's geneious
Andrew Newell
@scytherswings
Apr 05 2017 22:36
Monitarr makes me think of pirates lol
Sean Vreeland
@seanvree
Apr 05 2017 22:36
ha ha ha
i love it
Andrew Newell
@scytherswings
Apr 05 2017 22:36
the whole “arr” thing
Sean Vreeland
@seanvree
Apr 05 2017 22:36
up to you tho
Andrew Newell
@scytherswings
Apr 05 2017 22:36
I’m not overly concerned about the name currently
Sean Vreeland
@seanvree
Apr 05 2017 22:36
yeah true, but if we change it early then it will save us headache later
trust me
Andrew Newell
@scytherswings
Apr 05 2017 22:36
If PlexPy hasn’t gotten a legal notice yet then I doubt this would
ehhhhhhhhh
maybe
Sean Vreeland
@seanvree
Apr 05 2017 22:37
look what PlexRequest went thru
NBD your call
Andrew Newell
@scytherswings
Apr 05 2017 22:44
Oh I’m not familiar with what happened to them
Sean Vreeland
@seanvree
Apr 05 2017 23:06
yeah, they got served a notice
sucked because they had all their graphics and shit all done
was dope
so they had to go back and change everything that even refrenced the word PLEX in their code
Andrew Newell
@scytherswings
Apr 05 2017 23:07
ahhh damn
taht sucks
well
Plex is all over this one
literally in the name of database tables
fuuuuck
Sean Vreeland
@seanvree
Apr 05 2017 23:09
we don' thave to go that far
but ANYTHING that appears on the front end needs to be very very tactfully done
that's why the first thing on reddit was tellign us to change our name
might as well do it before we bump to 1.0
yeah, don't worry about back end codde
Andrew Newell
@scytherswings
Apr 05 2017 23:10
lol
Sean Vreeland
@seanvree
Apr 05 2017 23:10
MOOOOM
I don't waaannna
jail is hard too
and selling crack because all your money is gone
Andrew Newell
@scytherswings
Apr 05 2017 23:11
Hahahaha I don't think you can go to jail over infringing a trademark, but lawyers are the ones who make the big bucks, not me
Sean Vreeland
@seanvree
Apr 05 2017 23:11
dude, I know
but you get my point
Andrew Newell
@scytherswings
Apr 05 2017 23:11
Yeah
I still want to whine about it though
Sean Vreeland
@seanvree
Apr 05 2017 23:11
ha ha
right
feels soooo goood
Andrew Newell
@scytherswings
Apr 05 2017 23:11
because I thought the name was clever and awful at the same time
:grin:
Sean Vreeland
@seanvree
Apr 05 2017 23:13
monitarr?
Andrew Newell
@scytherswings
Apr 05 2017 23:13
We should put together a few names, I'm not sold on that one yet only because it's very follow-the-leader
I should put "tm" everywhere
just to be obnoxious
Andrew Newell
@scytherswings
Apr 05 2017 23:27
Trying to catch up on reddit
I missed some of the posts you made lol
Sean Vreeland
@seanvree
Apr 05 2017 23:32
totally
I think we should NOT focus on PLEX tho
think server managment
I mean, look at my UI, half my shit isn'te even related to PLEX
IIS
FTP
RDC
Andrew Newell
@scytherswings
Apr 05 2017 23:33
y u do dis to me
lol
Sean Vreeland
@seanvree
Apr 05 2017 23:34
hey
can you get to my site?
Andrew Newell
@scytherswings
Apr 05 2017 23:34
your live version?
Sean Vreeland
@seanvree
Apr 05 2017 23:34
yup
Andrew Newell
@scytherswings
Apr 05 2017 23:36
1 sec
Sean Vreeland
@seanvree
Apr 05 2017 23:37
also try the non-ssl
Andrew Newell
@scytherswings
Apr 05 2017 23:38
ooh
http seems to have messed up things
Sean Vreeland
@seanvree
Apr 05 2017 23:39
what's it look like?
Andrew Newell
@scytherswings
Apr 05 2017 23:39
struggling with screenshots
c'mon gitter
gah
Error uploading screenshot
dafuuuuuuq
rip
can't do screenshots on ubuntu with the desktop client
Selection_031.png
yay web client works
Sean Vreeland
@seanvree
Apr 05 2017 23:40
hummm
Andrew Newell
@scytherswings
Apr 05 2017 23:41
Ahhh when I click on any links with the https version it asks for auth
that's weird
Sean Vreeland
@seanvree
Apr 05 2017 23:41
what about non-ssl
Right
Andrew Newell
@scytherswings
Apr 05 2017 23:41
how did you set that up
Sean Vreeland
@seanvree
Apr 05 2017 23:41
which it should!
ha ha ha ha
reverse proxy baby!
Andrew Newell
@scytherswings
Apr 05 2017 23:41
voodoo
Sean Vreeland
@seanvree
Apr 05 2017 23:41
NBD
kk, try my non-ssl log site:
Andrew Newell
@scytherswings
Apr 05 2017 23:41
http doesn't auth
Sean Vreeland
@seanvree
Apr 05 2017 23:41
hummmm
Andrew Newell
@scytherswings
Apr 05 2017 23:41
which is probably not good
because your plex token can be seen
Sean Vreeland
@seanvree
Apr 05 2017 23:41
wait
try incognito mode
it's prob cachine the creds from before
Andrew Newell
@scytherswings
Apr 05 2017 23:42
I've not used this machine to see your site
Sean Vreeland
@seanvree
Apr 05 2017 23:42
gotta ALWAYS run ingnito when testing buddy
yeah, but are you signed in to chrome?
Andrew Newell
@scytherswings
Apr 05 2017 23:42
Yeah
Sean Vreeland
@seanvree
Apr 05 2017 23:42
try it
Andrew Newell
@scytherswings
Apr 05 2017 23:42
sloooow
Sean Vreeland
@seanvree
Apr 05 2017 23:42
the logs site?
Andrew Newell
@scytherswings
Apr 05 2017 23:43
Selection_032.png
~22 seconds
something timed out I'm guessing
assets
i'd bet
Sean Vreeland
@seanvree
Apr 05 2017 23:44
yeah
okay, let me reboot IIS
therre's no errors on the server side
so it's ruby or something internal
I'm not sure how to check those logs
Andrew Newell
@scytherswings
Apr 05 2017 23:45
I think it's actually a problem with the generated asset urls
so you'd only see issues client side
Sean Vreeland
@seanvree
Apr 05 2017 23:46
Yeah, it's FAST for me, but I'm obvi on my LAN
Andrew Newell
@scytherswings
Apr 05 2017 23:47
k
fuck yeah
I think i've got a fix for the recentlyAdded
aww yiiis
This message was deleted
Andrew Newell
@scytherswings
Apr 05 2017 23:55
ok dev has a new change that should fix Plex Recently Added behavior @seanvree