mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
committed by
Rainer Killinger
parent
8f10626e52
commit
b3ee587831
17
src/cli.ts
17
src/cli.ts
@@ -1,3 +1,18 @@
|
||||
/*
|
||||
* Copyright (C) 2019 StApps
|
||||
* 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/>.
|
||||
*/
|
||||
import {execSync} from 'child_process';
|
||||
import * as config from 'config';
|
||||
import * as Dockerode from 'dockerode';
|
||||
@@ -19,7 +34,7 @@ const configFile: ConfigFile = config.util.toObject();
|
||||
/**
|
||||
* Reads the container information from the docker socket and updates
|
||||
* the nginx config if necessary
|
||||
*
|
||||
*
|
||||
* The function will call itself again every 10s
|
||||
*/
|
||||
async function updateNginxConfig() {
|
||||
|
||||
Reference in New Issue
Block a user