Removed useless subdomain stuff, NGINX should do it

This commit is contained in:
thematdev 2021-09-08 14:29:24 +03:00
parent 12d2db8799
commit 60c698c0ef
2 changed files with 3 additions and 9 deletions

View File

@ -40,7 +40,7 @@ load_dotenv()
#@@@@&. (@@@@@@@@@ ** """ #@@@@&. (@@@@@@@@@ ** """
app = Flask(__name__, subdomain_matching=True) app = Flask(__name__)
def generate_iq(): def generate_iq():
@ -67,10 +67,4 @@ def index():
data = json.loads(file.read()) data = json.loads(file.read())
cols = data['cols'] cols = data['cols']
projects = data['projects'] projects = data['projects']
return render_template('index.html', random_number=generate_iq(), projects=projects, return render_template('index.html', random_number=generate_iq(), projects=projects)
texlink=os.getenv('TEXURL'))
@app.route('/', subdomain='tex')
def texindex():
return render_template('texindex.html')

View File

@ -12,7 +12,7 @@
<p> Тут можно подпись какую-то сделать </p> <p> Тут можно подпись какую-то сделать </p>
<p> Ваш IQ: {{ random_number }}</p> <p> Ваш IQ: {{ random_number }}</p>
<div class="btn-container"> <div class="btn-container">
<a href="{{texlink}}" class="btn btn-tex"> <a class="btn btn-tex">
TeX TeX
</a> </a>
<a class="btn" href="https://wiki.thematdev.org"> <a class="btn" href="https://wiki.thematdev.org">