Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 12 2015 14:01
    sup homies
Luke Campbell
@lukecampbell
but, feedback that has reached derrick has suggested that there are too many domains to manage and that no one knows where to go
Kyle Wilcox
@kwilcox
are you doing proxy_set_header Host $host;
Luke Campbell
@lukecampbell
yeah
    location /gliders/status/ {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Script-Name /gliders/status;
        proxy_set_header Host $http_host;
        proxy_redirect off;
        proxy_pass http://localhost:4000/;
    }
err hold on
half baked
everything is fine... right up until you click a link :)
Kyle Wilcox
@kwilcox
because flask links to /
Luke Campbell
@lukecampbell
yup
Kyle Wilcox
@kwilcox
yeah, its gotta be changed at application level through some URL router
Luke Campbell
@lukecampbell
I've looked for ways to configure flask apps to use a configure variable as the application prefix
but none have panned out
I might just have to hack the url_for method
Kyle Wilcox
@kwilcox
yeah
uWSGI supports this if you want to run through that
Luke Campbell
@lukecampbell
how do you like it?
We're using gunicorn for now
Kyle Wilcox
@kwilcox
i remember some configuration possible which almost made me swtich from gunicorn
Ive never used it
Luke Campbell
@lukecampbell
hmm...
might be worth a shot
oh well, I may just fork werkzeug to fix it
Kyle Wilcox
@kwilcox
yeah that seems like the easy route
Luke Campbell
@lukecampbell
and derrick wants it by the end of the day
Kyle Wilcox
@kwilcox
:bomb:
Luke Campbell
@lukecampbell
... so there's that
Well let me rephrase, derrick wants it soon, Kelly wants it done cob
anyway so if I fix flask and find a way to fix thredds
the subdomain reverse proxy should work through nginx
just replace localhost with the subdomain
right?
Kyle Wilcox
@kwilcox
yeah
Luke Campbell
@lukecampbell
"theoretically"
ok, god I hope this works
Luke Campbell
@lukecampbell
by the way, docker is awesome
ansible+docker = win
Dave Foster
@daf
how are you using the two together
Luke Campbell
@lukecampbell
ansible sets up docker
pretty much
OOI uses it the most actually
spin up a host on aws, use ansible to install dependencies and docker
deploy docker images on host
then use ansible to set up nginx
and iptables
Dave Foster
@daf
nice
i had tried using ansible inside of a docker image to set up the image itself, but it was so opaque and didn't take advantage of docker's caching at all
can save you a lot of time if you use aws
Dave Foster
@daf
we don't, but thanks
and we use ansible a lot too :)