You are here

Setting up EmCommMap and having issues.... Lots of issues...

1 post / 0 new
KE0RSX
KE0RSX's picture
Setting up EmCommMap and having issues.... Lots of issues...
Hi, everyone,

So, I've followed the steps at https://github.com/DanRuderman/EmComMap and have it working sort-of. If I have my install set at "local", everything works. But, when I change it to "my-install", I get "Page cannot be reached" errors. Specifically, I get "Connection Refused" errors.

Here's what my config.js looks like (note, I'm only showing you up to part of the "local" section, because that all works):

ac0ec-emcommmap-admin@ac0ec-emcommmap:/var/www/html/EmComMap/html$ head -45 config.js
//
// Copyright 2018 Dan Ruderman (dlruderman@gmail.com)
//
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU Affero General Public License as published
//    by the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU Affero General Public License for more details.
//
//    You should have received a copy of the GNU Affero General Public License
//    along with this program.  If not, see https://www.gnu.org/licenses/.
//

const VERSION = "v0.4b"; // software version

const TEST_MODE = true; // true means all messages and statuses will be prepended with "TEST: "

const ADMIN_EMAIL = ""; // fill this in with the email contact for credentials requests

const RUN_LOCATION = "my-install";

if(RUN_LOCATION == "my-install") {
    var TILE_SERVER = 'http://10.214.240.46:8080/styles/klokantech-basic/{z}/{x}/{y}.png'; // set <host> to your tile server
    var TILE_SERVER_OPTS = {
        maxZoom: 18,
        attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' +
            '<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
            'Server courtesy of <a href="https://openmaptiles.com/">OpenMapTiles</a>'
    };
    var DEFAULT_DB_HOST = '10.214.240.46'; // set <host> to your CouchDB server
    var LOCAL_DB_NAME = 'emcommap';
} else if(RUN_LOCATION=="local") {
//
// For running on local computer with internet access to external tile server
//

I'm looking for guidance on what I'm doing wrong. I've tried it with the hostname (ac0ec-emcommmap.local.mesh) as well as the IP Address. And, a question about the CouchDB setup. What do I put in for users? I don't remember it trying to log me in when I was able to access via the "local" install. I've only got one user in the database because I really don't know what needs to be there (or how it determines if a user is valid or not).

Thanks for your help.
Patrick.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer