UNPKG

1.82 kBJavaScriptView Raw
1/*
2 * Copyright 2018 Adobe. All rights reserved.
3 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License. You may obtain a copy
5 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under
8 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9 * OF ANY KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 */
12
13'use strict';
14
15module.exports = {
16 appTitle: 'Helix Git Server',
17 repoRoot: './repos',
18 // repository mapping. allows to 'mount' repositories outside the 'repoRoot' structure.
19 virtualRepos: {
20 demoOwner: {
21 demoRepo: {
22 path: './virtual/example',
23 },
24 },
25 },
26 listen: {
27 http: {
28 port: 5000,
29 host: '0.0.0.0',
30 },
31 /*
32 // https is optional
33 https: {
34 // cert: if no file is specfied a selfsigned certificate will be generated on-the-fly
35 // cert: './localhost.crt',
36 // key: if no file is specfied a key will be generated on-the-fly
37 // key: './localhost.key',
38 port: 5443,
39 host: '0.0.0.0',
40 },
41 */
42 },
43 subdomainMapping: {
44 // if enabled, <subdomain>.<baseDomain>/foo/bar/baz will be
45 // resolved/mapped to 127.0.0.1/<subdomain>/foo/bar/baz
46 enable: true,
47 baseDomains: [
48 // some wildcarded DNS domains resolving to 127.0.0.1
49 'localtest.me',
50 'lvh.me',
51 'vcap.me',
52 'lacolhost.com',
53 ],
54 },
55 logs: {
56 level: 'info', // fatal, error, warn, info, verbose, debug, trace
57 logsDir: './logs',
58 reqLogFormat: 'short', // used for morgan (request logging)
59 },
60};