diff --git a/app.py b/app.py index d815658..b9d80cf 100644 --- a/app.py +++ b/app.py @@ -58,4 +58,4 @@ if __name__=="__main__": app.add_url_rule('/success/', 'success', success) app.add_url_rule('/login', 'login', login, methods = ['POST', 'GET']) app.add_url_rule('/req', 'req', req, methods = ['POST', 'GET']) - app.run(host="192.168.1.228",debug=True) + app.run(host="104.248.118.130",debug=True) diff --git a/perl-script/create-user.pl b/perl-script/create-user.pl index 0ae41e7..22820e9 100644 --- a/perl-script/create-user.pl +++ b/perl-script/create-user.pl @@ -54,12 +54,15 @@ sub create($){ system($cmd); #system("mkdir /home/$username/.ssh"); - system("chmod 700 /home/$username/.ssh"); - system("mv $FULL_PATH/$id.pub /home/$username/.ssh/authorized_keys"); - system("chmod 600 /home/$username/.ssh/authorized_keys"); - system("chown $username:$username /home/$username/.ssh"); - system("chown $username:$username /home/$username/.ssh/authorized_keys"); + #system("chmod 700 /home/$username/.ssh"); + system("cat $FULL_PATH/$id.pub > /home/$username/.ssh/authorized_keys"); + #system("mv $FULL_PATH/$id.pub /home/$username/.ssh/authorized_keys"); + #system("chmod 600 /home/$username/.ssh/authorized_keys"); + system("chmod 711 /home/$username"); + #system("chown $username:$username /home/$username/.ssh"); + #system("chown $username:$username /home/$username/.ssh/authorized_keys"); system("rm $FULL_PATH/$id.ident"); + system("rm $FULL_PATH/$id.pub"); } close FILE; } diff --git a/static/lainsign.png b/static/lainsign.png new file mode 100644 index 0000000..51e78a1 Binary files /dev/null and b/static/lainsign.png differ diff --git a/static/main_home.css b/static/main_home.css new file mode 100644 index 0000000..cf0b2e2 --- /dev/null +++ b/static/main_home.css @@ -0,0 +1,71 @@ +html { + background: #000; + background-image: url("lainsign.png"); + background-repeat: no-repeat; +} + +h1{ + text-align: center; +} + +footer{ + width: 800px; + margin: 0 auto; +} + +body { + margin: 0; + padding: 0; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + color: #fff; +} + + /* + * Formatting the header area + */ + +header { + height: 35px; + width: 100%; + opacity: .9; + margin-bottom: 10px; +} + +header h1.logo { + margin: 0; + font-size: 1.7em; + color: #fff; + text-transform: uppercase; + float: left; +} + +/* header h1.logo:hover { */ +/* color: #fff; */ +/* text-decoration: none; */ +/* } */ + + /* + * Center the body content + */ + +.container { + width: 800px; + margin: 0 auto; +} + +h2 { + font-size: 3em; + margin-top: 40px; + text-align: center; + letter-spacing: -2px; +} + +h3 { + font-size: 1.7em; + font-weight: 100; + margin-top: 30px; + text-align: center; + letter-spacing: -1px; + color: #999; +} + diff --git a/templates/home.html b/templates/home.html index 564828b..c8b3459 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,4 +1,4 @@ -{%extends "layout.html"%} +{%extends "main_layout.html"%} {% block content %}

Home

diff --git a/templates/index.html b/templates/index.html index 2b4fba2..ea90b06 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,10 +1,12 @@ -{%extends "layout.html"%} +{%extends "main_layout.html"%} {%block content %}
-

lingy.in is a public unix / tilde instance for lainchan users

-

thread: https://lainchan.org/tech/res/34563.html

-

request an account

+

lingy.in is a public unix / tilde instance for lainons

+

current thread: https://lainchan.org/tech/res/34563.html

+

sign up

+

rules

+

git

users

  1. gashapwn
  2. diff --git a/templates/main_layout.html b/templates/main_layout.html new file mode 100644 index 0000000..dcf28d2 --- /dev/null +++ b/templates/main_layout.html @@ -0,0 +1,15 @@ + + + LAINTILDE0 + + +

    lingy.in

    + +
    + {%block content%} + {%endblock%} +
    + + + +