Sha256: 647c3a3c1b8a00075d86246c4e9e33383c43b80c69ee4eaeeabb9a302d4f2bca
Contents?: true
Size: 869 Bytes
Versions: 1
Compression:
Stored size: 869 Bytes
Contents
# configure nginx RUN gem install foreman && \ <% unless run_as_root? -%> sed -i 's|pid /run|pid /rails/tmp/pids|' /etc/nginx/nginx.conf && \ <% end -%> sed -i 's/access_log\s.*;/access_log stdout;/' /etc/nginx/nginx.conf && \ sed -i 's/error_log\s.*;/error_log stderr info;/' /etc/nginx/nginx.conf COPY <<-"EOF" /etc/nginx/sites-available/default server { listen 3000 default_server; listen [::]:3000 default_server; access_log 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dockerfile-rails-1.5.2 | lib/generators/templates/_nginx.erb |