mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed config paths
This commit is contained in:
parent
9c0038f0a3
commit
bf1b92fdf1
18 changed files with 92 additions and 124 deletions
27
config/backend.example.js
Normal file
27
config/backend.example.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
module.exports.CONFIG = {
|
||||
HTTPS: {
|
||||
ENABLED: false,
|
||||
PORT: 3000,
|
||||
PRIVATE_KEY: '/etc/letsencrypt/live/HOSTNAME.org/privkey.pem',
|
||||
CERTIFICATE: '/etc/letsencrypt/live/HOSTNAME.org/cert.pem',
|
||||
CA: '/etc/letsencrypt/live/hostname/chain.pem',
|
||||
},
|
||||
HTTP: {
|
||||
ENABLED: false,
|
||||
PORT: 3000,
|
||||
},
|
||||
DB: { // mongo db config
|
||||
USER: 'user',
|
||||
PASSWORD: 'password',
|
||||
HOSTNAME: 'HOSTNAME.org',
|
||||
PORT: 27017,
|
||||
DATABASE: 'map',
|
||||
},
|
||||
SOCIAL: {
|
||||
VK: {
|
||||
ENABLED: false,
|
||||
SECRET: 'YOUR_VK_SECRET', // secret token
|
||||
APP_ID: 0, // numeric
|
||||
}
|
||||
}
|
||||
};
|
16
config/frontend.example.js
Normal file
16
config/frontend.example.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { DEFAULT_PROVIDER, PROVIDERS } from '$constants/providers';
|
||||
|
||||
const API_ADDR = 'https://HOSTNAME.org:3000';
|
||||
const OSRM_URL = 'https://HOSTNAME.org:5001/route/v1';
|
||||
|
||||
export const CLIENT = {
|
||||
OSRM_URL,
|
||||
API_ADDR,
|
||||
STROKE_WIDTH: 5,
|
||||
};
|
||||
|
||||
export const COLORS = {
|
||||
PATH_COLOR: ['#ff7700', '#ff3344'],
|
||||
};
|
||||
|
||||
export const PROVIDER = PROVIDERS[DEFAULT_PROVIDER];
|
Loading…
Add table
Add a link
Reference in a new issue