Last active
February 29, 2016 23:21
-
-
Save YuriFontella/d9ce9c5534c3fd9a0f61 to your computer and use it in GitHub Desktop.
Passenger nginx file conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
error_log /opt/nginx/logs/error.log; | |
pid /opt/nginx/logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
passenger_root /var/lib/gems/2.1.0/gems/passenger-5.0.23; | |
passenger_ruby /usr/bin/ruby2.2; | |
include mime.types; | |
default_type application/octet-stream; | |
access_log /opt/nginx/logs/access.log; | |
#ssl_session_cache shared:SSL:10m; | |
#ssl_session_timeout 10m; | |
sendfile on; | |
keepalive_timeout 65; | |
server { | |
listen 80; | |
# listen 443 ssl default; | |
# ssl on; | |
server_name wiblisten.com; | |
root /media/yuri/Dados/html/wiblisten/public/; | |
autoindex on; | |
passenger_enabled on; | |
rails_env development; | |
#ssl_certificate /opt/nginx/ssl_certs/cert.crt; | |
#ssl_certificate_key /opt/nginx/ssl_certs/server.key; | |
#ssl_prefer_server_ciphers On; | |
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
#ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; | |
#add_header X-Frame-Options DENY; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment