Modifying NGINX Configuration File
#1
I believe for most of us it is hard to figured it out how to modify NGINX Config File to run gekko on Amazon EC2. Here is link for regarding issue on Gekko official page. 

Here is the sample /default config file. 

Code:
server {
   listen 80;
   listen [::]:80;
   server_name gekko.example.com;
   return 301 https://$server_name$request_uri;
}

upstream websocket {
   server localhost:3000;
}

server {
   listen 443 ssl;
   listen [::]:443 ssl;
   root /var/www/html;

   ssl_certificate /etc/nginx/ssl/nginx.crt;
   ssl_certificate_key /etc/nginx/ssl/nginx.key;    

   location / {
           proxy_buffers 8 32k;
           proxy_buffer_size 64k;

           proxy_pass http://websocket;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header Host $http_host;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
           proxy_set_header X-NginX-Proxy true;

           proxy_http_version 1.1;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "upgrade";

           proxy_read_timeout 86400s;
           proxy_send_timeout 86400s;

           auth_basic "Restricted Content";
           auth_basic_user_file /etc/nginx/.htpasswd;
   }
}

Do I need to copy & paste to this into my server default file ?
  Reply


Messages In This Thread
Modifying NGINX Configuration File - by CryptoCoeus - 09-24-2018, 10:34 AM

Forum Jump:


Users browsing this thread: