mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-01-04 03:33:28 +01:00
Test
This commit is contained in:
@@ -4,10 +4,9 @@ import requests, json, os
|
||||
from cryptography.fernet import Fernet
|
||||
from datetime import timedelta, date
|
||||
from dateutil import parser
|
||||
from flask import Flask, logging
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__, static_url_path="/static")
|
||||
app.logger = logging.create_logger(app)
|
||||
|
||||
##################################################################
|
||||
# Functions related to HEADSCALE and API KEYS
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# pylint: disable=wrong-import-order
|
||||
|
||||
import os, headscale, requests
|
||||
from flask import Flask, logging
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__, static_url_path="/static")
|
||||
app.logger = logging.create_logger(app)
|
||||
|
||||
def pretty_print_duration(duration, delta_type=""):
|
||||
""" Prints a duration in human-readable formats """
|
||||
|
||||
@@ -8,7 +8,6 @@ from concurrent.futures import ALL_COMPLETED, wait
|
||||
from flask_executor import Executor
|
||||
|
||||
app = Flask(__name__, static_url_path="/static")
|
||||
app.logger = logging.create_logger(app)
|
||||
executor = Executor(app)
|
||||
|
||||
def render_overview():
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import headscale, helper, json, os, pytz, renderer, secrets, requests
|
||||
from functools import wraps
|
||||
from datetime import datetime
|
||||
from flask import Flask, Markup, redirect, render_template, request, url_for, logging
|
||||
from flask import Flask, Markup, redirect, render_template, request, url_for
|
||||
from dateutil import parser
|
||||
from flask_executor import Executor
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
@@ -36,7 +36,6 @@ dictConfig({
|
||||
})
|
||||
|
||||
app = Flask(__name__, static_url_path="/static")
|
||||
app.logger = logging.create_logger(app)
|
||||
executor = Executor(app)
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user