mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-23 05:19:37 +02:00
Changed config api. Split config controllers into separate files. Split bookmarks controllers into separate files
This commit is contained in:
parent
76e50624e7
commit
cfb471e578
23 changed files with 579 additions and 602 deletions
|
@ -1,8 +1,8 @@
|
|||
const App = require('../../models/App');
|
||||
const App = require('../../../models/App');
|
||||
const axios = require('axios');
|
||||
const Logger = require('../../utils/Logger');
|
||||
const Logger = require('../../../utils/Logger');
|
||||
const logger = new Logger();
|
||||
const loadConfig = require('../../utils/loadConfig');
|
||||
const loadConfig = require('../../../utils/loadConfig');
|
||||
|
||||
const useDocker = async (apps) => {
|
||||
const {
|
||||
|
@ -50,7 +50,7 @@ const useDocker = async (apps) => {
|
|||
for (const container of containers) {
|
||||
let labels = container.Labels;
|
||||
|
||||
// todo
|
||||
// Traefik labels for URL configuration
|
||||
if (!('flame.url' in labels)) {
|
||||
for (const label of Object.keys(labels)) {
|
||||
if (/^traefik.*.frontend.rule/.test(label)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue