Browse Source

site_name is now part of conf

tags/release-00
gashapwn 3 years ago
parent
commit
3438503097
5 changed files with 10 additions and 8 deletions
  1. +4
    -2
      app.py
  2. +1
    -1
      lyadmin.conf.json
  3. +1
    -1
      templates/index.html
  4. +1
    -1
      templates/main_layout.html
  5. +3
    -3
      templates/rules.html

+ 4
- 2
app.py View File

@@ -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
- 1
lyadmin.conf.json View File

@@ -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",


+ 1
- 1
templates/index.html View File

@@ -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>


+ 1
- 1
templates/main_layout.html View File

@@ -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%}


+ 3
- 3
templates/rules.html View File

@@ -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…
Cancel
Save