site_name is now part of conf
This commit is contained in:
parent
fbf6a38903
commit
3438503097
6
app.py
6
app.py
@ -14,8 +14,6 @@ from flask import Flask, redirect, url_for, render_template, request
|
||||
# gasahwpn on irc.lainchan.org
|
||||
|
||||
|
||||
|
||||
|
||||
app=Flask(__name__)
|
||||
|
||||
# Paths for conf file,
|
||||
@ -140,6 +138,10 @@ def signup():
|
||||
|
||||
return render_template("signup.html", is_email_user = is_email_user)
|
||||
|
||||
@app.context_processor
|
||||
def get_site_name():
|
||||
return {"site_name": conf_obj["site_name"]}
|
||||
|
||||
if __name__=="__main__":
|
||||
app.add_url_rule('/rules', 'rules', rules)
|
||||
app.add_url_rule('/req', 'req', req, methods = ['POST', 'GET'])
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"instance_name": "lingy.in",
|
||||
"site_name": "lingy.in",
|
||||
"listen_ip": "104.248.118.130",
|
||||
"shell": {
|
||||
"SHELL_BASH": "/usr/local/bin/bash",
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{%block content %}
|
||||
<div class="home_blurb">
|
||||
<p>lingy.in is a public unix / tilde instance for lainons</p>
|
||||
<p>{{site_name}} is a public unix / tilde instance for lainons</p>
|
||||
<p><b>current thread: </b><a href="https://lainchan.org/tech/res/34563.html">https://lainchan.org/tech/res/34563.html</a></p>
|
||||
<p><a href="/req">sign up</a></p>
|
||||
<p><a href="/rules">rules</a></p>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<link rel="stylesheet" href="{{url_for('static',filename='main.css')}}">
|
||||
{% endif %}
|
||||
</head>
|
||||
<h1>lingy.in</h1>
|
||||
<h1>{{ site_name }}</h1>
|
||||
<body>
|
||||
<div class="container">
|
||||
{%block content%}
|
||||
|
@ -4,11 +4,11 @@
|
||||
<p>
|
||||
<h3>Rules</h3>
|
||||
<ol>
|
||||
<li>you must 18 or older to use lingy.in</li>
|
||||
<li>you must 18 or older to use {{ site_name }}</li>
|
||||
<li>since this is multiuser system, show good judgement with the server resources (ie dont start mining crypto)</li>
|
||||
<li>don't damage/delete others work</li>
|
||||
<li>don't upload child pornography to lingy.in</li>
|
||||
<li>don't use lingy.in to distribute malware</li>
|
||||
<li>don't upload child pornography to {{ site_name }}</li>
|
||||
<li>don't use {{ site_name }} to distribute malware</li>
|
||||
<li>be smart with your data (fwiw, when i use a shared system like this i assume all data i have on the box is effecitvely comprimised)</li>
|
||||
</ol>
|
||||
</br>
|
||||
|
Loading…
Reference in New Issue
Block a user