Sha256: 9b583b7113f41da87a1657f33000f993407010df28f00e54fb81a33d1a437493

Contents?: true

Size: 778 Bytes

Versions: 11

Compression:

Stored size: 778 Bytes

Contents

# configure nginx
RUN gem install foreman && \
    sed -i 's/access_log\s.*;/access_log \/dev\/stdout;/' /etc/nginx/nginx.conf && \
    sed -i 's/error_log\s.*;/error_log \/dev\/stderr info;/' /etc/nginx/nginx.conf

COPY <<-"EOF" /etc/nginx/sites-available/default
server {
  listen 3000 default_server;
  listen [::]:3000 default_server;
  access_log /dev/stdout;

  root /rails/public;

  location /cable {
    proxy_pass http://localhost:8082/cable;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
  }

  location / {
    try_files $uri @backend;
  }

  location @backend {
    proxy_pass http://localhost:3001;
    proxy_set_header origin 'http://localhost:3000';
  }
}
EOF

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dockerfile-rails-1.1.1 lib/generators/templates/_nginx.erb
dockerfile-rails-1.1.0 lib/generators/templates/_nginx.erb
dockerfile-rails-1.0.18 lib/generators/templates/_nginx.erb
dockerfile-rails-1.0.17 lib/generators/templates/_nginx.erb
dockerfile-rails-1.0.16 lib/generators/templates/_nginx.erb
dockerfile-rails-1.0.15 lib/generators/templates/_nginx.erb
dockerfile-rails-1.0.14 lib/generators/templates/_nginx.erb
dockerfile-rails-1.0.13 lib/generators/templates/_nginx.erb
dockerfile-rails-1.0.12 lib/generators/templates/_nginx.erb
dockerfile-rails-1.0.11 lib/generators/templates/_nginx.erb
dockerfile-rails-1.0.10 lib/generators/templates/_nginx.erb