Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name [your domain];
client_max_body_size 30M;
keepalive_timeout 5;
return 301 https://$server_name$request_uri;
}
# HTTPS server
server {
listen 443 default_server ssl;
server_name [your domain];
ssl_certificate /etc/letsencrypt/live/[your public key];
ssl_certificate_key /etc/letsencrypt/live/[your privite key];
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header HOST $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:8000;
proxy_redirect off;
}
}
}
@deadlylaid

This comment has been minimized.

Copy link
Owner Author

@deadlylaid deadlylaid commented May 9, 2016

위의 코드를 복사하여 여러분의 nginx.conf파일에 덮어써주시면 됩니다. 이하-http://paphopu.tistory.com/24에서의 설명

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment