Created
April 5, 2019 16:34
-
-
Save jmercouris/20666cd6342428fc528f8b3e25c68ffd to your computer and use it in GitHub Desktop.
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
#user nobody; | |
worker_processes 1; | |
# This default error log path is compiled-in to make sure configuration parsing | |
# errors are logged somewhere, especially during unattended boot when stderr | |
# isn't normally logged anywhere. This path will be touched on every nginx | |
# start regardless of error log location configured here. See | |
# https://trac.nginx.org/nginx/ticket/147 for more info. | |
# | |
#error_log /var/log/nginx/error.log; | |
# | |
#pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
#log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
# '$status $body_bytes_sent "$http_referer" ' | |
# '"$http_user_agent" "$http_x_forwarded_for"'; | |
#access_log logs/access.log main; | |
sendfile on; | |
#tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
#gzip on; | |
server { | |
listen 80; | |
server_name atlas.engineer; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name atlas.engineer; | |
ssl_certificate /usr/local/etc/letsencrypt/live/atlas.engineer/fullchain.pem; | |
ssl_certificate_key /usr/local/etc/letsencrypt/live/atlas.engineer/privkey.pem; | |
ssl_session_cache shared:SSL:1m; | |
ssl_session_timeout 5m; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
ssl_prefer_server_ciphers on; | |
location /.well-known/ { | |
try_files $uri $uri/ =404; | |
} | |
location / { | |
try_files $uri @backend; | |
} | |
location @backend { | |
include /usr/local/etc/nginx/fastcgi_params; | |
fastcgi_pass 127.0.0.1:9000; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment