Questions tagged [thin]

Thin is an EventMachine-based web server written in Ruby for running Rack-based web apps.

Thin is an EventMachine-based web server written in Ruby for running Rack-based web apps.

http://code.macournoyer.com/thin/

54 questions
2
votes
3 answers

How can I fix Sinatra redirects switching from https to http under nginx?

I have a Sinatra app running in nginx (using thin as a back-proxy) and I'm using redirect '/' statements in Sinatra. However, when I access the site under https, those redirects send me to http://localhost/ rather than to…
Alex Mullans
  • 135
  • 1
  • 6
2
votes
1 answer

How to setup nginx + thin + multiple domains + multiple virtual hosts?

I have a VPS. I create websites with Rails. I have several domains. Now I want to install nginx + thin, and configure them to support multiple hosts, let each host have a seperated domain. I have searched a lot, and now nginx and thin are installed…
Freewind
  • 231
  • 3
  • 10
1
vote
2 answers

Thin process duplicates after upstart.conf run

I'm trying to run thin server in upstart. Here is what my upstart.conf file contains: description 'kitfaye' start on runlevel [12356] stop on runlevel [!12356] respawn script exec su -l deploy -c "export RAILS_ENV=production && cd …
m8labs
  • 113
  • 4
1
vote
1 answer

Blocking/redirecting port 3000 with Nginx and Ruby On Rails (thin server)

I am setting up a server now that uses Ruby on Rails with the Thin server. I have set up Nginx to redirect all of my http://mysite.com to https://mysite.com(with ssl). I want all network traffic to the page be SSL, no exceptions. This works great,…
Automatico
  • 183
  • 2
  • 8
1
vote
0 answers

Get Thin server to restart while picking up changes in newly deployed directory

After deploying using capistrano where I have a deploy task that is restarting the thin server, the changes that were just deployed are not getting picked up by the thin server. Even if I manually run the thin restart command from the new deploy…
1
vote
1 answer

SSL connection to Thin through vagrant

I'm running a Rails app that forces SSL and uses HTTP basic authentication inside of a vagrant VM. If I try to make a curl request to the app from my host machine I get curl -k --verbose https://[user]:[password]@localhost:3001/ * About to connect()…
Ben Fischer
  • 111
  • 3
1
vote
1 answer

Starting command on boot with correct user env vars

I am attempting to create a start-up script that will run this command on boot for my ubuntu 12.04 server: bundle exec thin -R config.ru start -p 3030 When I run it as a regular user it works just fine, the thin web server starts and I can access my…
joshmmo
  • 113
  • 6
1
vote
1 answer

Nginx proxying websockets, connections not closed

I'm confused about where the problem is located, but basically I have nginx proxying websocket connections to a backend ruby thin server, which services the connections with the websocket-rails module in a Ruby on Rails application. Which all works…
1
vote
1 answer

"Thin" Rails Server - Automatically Startup

I am looking for some ideas on how to start up my "Thin" Rails server automatically, whenever the machine where it resides reboots. The problem is that when the machine reboots, "Thin" needs to be started up manually, which causes issues with the…
Slinky
  • 957
  • 3
  • 14
  • 25
1
vote
2 answers

Linux: find thin server running on port 80 and kill it

On my Linux server I ran: sudo thin start -p 80 -d Now I'd like to restart the sever. The trouble is, I can't seem to get the old process to kill it. I tried: netstat -anp But what I see on port 80 is this: Proto Recv-Q Send-Q Local Address …
Andrew
  • 111
  • 4
1
vote
2 answers

Thin server : `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)

My thin webserver fails to start with an error message. I can hardly find any information or leads on how to fix this, anyone an idea? thx Thin web server (v1.5.0 codename Knife) Maximum connections set to 1024 Listening on 0.0.0.0:9292,…
Rubytastic
  • 223
  • 1
  • 2
  • 14
1
vote
1 answer

nginx config for secure assets serving

I have a web app that has static content and can serve dynamic pages and secure content. Static content lies in /public folder and should be served directly by nginx. Dynamic content is served by 127.0.0.1:3000 upstream. Secure content is also…
ujifgc
  • 186
  • 10
1
vote
3 answers

How can I run my Thin server as a different user on Ubuntu?

I run an Ubuntu 10.04 VPS which hosts 2 Thin processes running Ruby On Rails behind Nginx. I control the Thin processes via a /etc/init.d startup script as a regular user. In my Thin config file I specify: user: www-data group: www-data And in my…
Chris
  • 123
  • 1
  • 8
1
vote
1 answer

Using UNIX sockets with nginx

I would like to clarify some doubts I have about using nginx to proxy requests over a cluster of thin servers (http://code.macournoyer.com/thin/). I've read many blog posts about using UNIX sockets and not TCP connections, my only doubt is about…
ngw
  • 1,201
  • 3
  • 13
  • 15
1
vote
1 answer

Elastic Load Balancer & SSL termination

I am setting up a Rails app on AWS that: 1) all traffic must be ssl encrypted 2) will highly fluctuate in the amount of traffic on a weekly basis 3) will by maintained by someone that is a stronger coder than sysadmin I am thinking that SSL…