Running gekko on a ubuntu server with apache
#20
(02-17-2018, 11:55 AM)sierra Wrote:
(02-10-2018, 08:59 PM)ankasem Wrote: [cut]

In bash hold ctrl + c. Smile
--------------------------------
for server
----------------------------------
https://gekko.wizb.it/docs/installation/...erver.html

I tried this, but when I CTRL+C, Gekko stops, even though I set "headless: true"

This is my UIconfig.js:
Code:
const CONFIG = {
 headless: true,
 api: {
   host: '192.168.1.24',
   port: 80,
   timeout: 120000 // 2 minutes
 },
 ui: {
   ssl: false,
   host: '192.168.1.24',
   port: 80,
   path: '/'
 },
 adapter: 'sqlite'
}

if(typeof window === 'undefined')
 module.exports = CONFIG;
else
 window.CONFIG = CONFIG;
I also tried it without the "if(typeof...." part, but still no luck.

I'm running on a fresh Debian 9x VM

have you gotten this working? I'm stuck, edited both the uiconfig file and nginx conf file. I'm running on a vultr server (the 2.50 USD one!)

this is my ui config file 

Code:
const CONFIG = {
   headless: true,
   api: {
       host: 'x.x.x.x', // changed x.x.x.x to ip address of server
       port: 3000,
   },
   ui: {
       ssl: false,
       host: 'x.x.x.x', // changed x.x.x.x to ip address of server
       port: 3000,
       path: '/'
   },
   adapter: 'sqlite'

}

this is for my nginx

Code:
server {
   listen 80;
   listen [::]:80;
   server_name x.x.x.x;
   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;
   }
}

my openssl cert prompt went something like this

Code:
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:New Jersey
Locality Name (eg, city) []:New Jersey
Organization Name (eg, company) [Internet Widgits Pty Ltd]:.
Organizational Unit Name (eg, section) []:.
Common Name (e.g. server FQDN or YOUR name) []:x.x.x.x (this is ok right? using the same ip address?!)
Email Address []:personal email

when I ran this code, I was asked to input password which I did.

Code:
printf "username:`openssl passwd -apr1`\n" >> /etc/nginx/.htpasswd

My problems

what parameters can I use to check that i successfully installed this setup?

when i try to access the gekko from my home PC using this x.x.x.x:3000 I get an error in connection. Why?

is it possible/useful to enable 2FA for the gekko?

is there a video anywhere of someone installing this software?

any and all feedback is appreciated.
  Reply


Messages In This Thread
RE: Running gekko on a ubuntu server with apache - by tunetokheyno - 05-05-2018, 07:15 AM

Forum Jump:


Users browsing this thread: