Skip to content
Permalink
Browse files

Configure nginx

  • Loading branch information...
takonomura committed Sep 8, 2019
1 parent 0b8bf62 commit 7144bb2103fcca583b3446bf03d8f9d3d43acd45
Showing with 12 additions and 4 deletions.
  1. +12 −4 isu01/nginx.conf
@@ -2,11 +2,12 @@ user www-data;
worker_processes 1;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
worker_rlimit_nofile 100000;

error_log /var/log/nginx/error.log error;

events {
worker_connections 1024;
worker_connections 4096;
}

http {
@@ -20,6 +21,9 @@ http {
keepalive_timeout 120;
client_max_body_size 10m;

open_file_cache max=100 inactive=65s;
gzip_static on;

log_format ltsv "time:$time_local"
"\thost:$remote_addr"
"\tforwardedfor:$http_x_forwarded_for"
@@ -42,16 +46,20 @@ http {
ssl_prefer_server_ciphers on;
ssl_ciphers 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';

upstream app {
server 127.0.0.1:8080;
}

server {
listen 443 ssl;
listen 443 ssl http2;
server_name isucon9.catatsuy.org;

ssl_certificate /etc/nginx/ssl/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/privkey.pem;

location / {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8000;
proxy_pass http://app;
proxy_set_header Host $host;
}
}
}

0 comments on commit 7144bb2

Please sign in to comment.
You can’t perform that action at this time.