diverse fixes
This commit is contained in:
@@ -9,7 +9,7 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
uwsgi_pass unix:///srv/simple_sample_flat_index/uwsgi.sock;
|
uwsgi_pass unix:///var/run/fet_fotos.sock
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ def thumb(size=64,name=''):
|
|||||||
elif exif[orientation] == 8:
|
elif exif[orientation] == 8:
|
||||||
image=image.rotate(90, expand=True)
|
image=image.rotate(90, expand=True)
|
||||||
thumb=ImageOps.fit(image,s,Image.ANTIALIAS)
|
thumb=ImageOps.fit(image,s,Image.ANTIALIAS)
|
||||||
|
|
||||||
print("writing %s"% thumb_name)
|
print("writing %s"% thumb_name)
|
||||||
|
|
||||||
os.makedirs(thumb_path,exist_ok=True)
|
os.makedirs(thumb_path,exist_ok=True)
|
||||||
@@ -80,7 +81,7 @@ def thumb(size=64,name=''):
|
|||||||
return send_from_directory(os.path.join("../thumbs","thumbs_%i" % size),name)
|
return send_from_directory(os.path.join("../thumbs","thumbs_%i" % size),name)
|
||||||
|
|
||||||
|
|
||||||
@page_blueprint.route('/<path:name>/',strict_slashes=True)
|
@page_blueprint.route('/<path:name>/',strict_slashes=False)
|
||||||
@page_blueprint.route('/')
|
@page_blueprint.route('/')
|
||||||
def post(name=''):
|
def post(name=''):
|
||||||
print("Post: %s" % name)
|
print("Post: %s" % name)
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
{# -*-jinja2-*- #}
|
{# -*-jinja2-*- #}
|
||||||
<html>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" href="https://www.fet.at/logo2014_64.png">
|
<link rel="shortcut icon" href="galleries/logo2014_64.png">
|
||||||
|
|
||||||
<link rel="alternate" hreflang="de" href="/de/home/search" />
|
<link rel="alternate" hreflang="de" href="/de/home/search" />
|
||||||
<link rel="alternate" hreflang="en" href="/en/home/search" />
|
<link rel="alternate" hreflang="en" href="/en/home/search" />
|
||||||
@@ -14,7 +12,6 @@
|
|||||||
<link rel="stylesheet" href="/galleries/css/blueimp-gallery.min.css" />
|
<link rel="stylesheet" href="/galleries/css/blueimp-gallery.min.css" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://www.fet.at/assets/application-7cbec5b180d121b587cfe58e2d4517d1.js" type="text/javascript"></script>
|
<script src="https://www.fet.at/assets/application-7cbec5b180d121b587cfe58e2d4517d1.js" type="text/javascript"></script>
|
||||||
<title>Fetsite</title>
|
<title>Fetsite</title>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
flask
|
flask
|
||||||
Frozen-Flask
|
Frozen-Flask
|
||||||
config
|
config
|
||||||
uwsgi
|
|
||||||
gevent
|
gevent
|
||||||
Pillow
|
Pillow
|
||||||
git+https://github.com/andreassteph/flatpages_index.git
|
git+https://github.com/andreassteph/flatpages_index.git
|
||||||
|
|||||||
@@ -4,14 +4,14 @@ uid = 33
|
|||||||
gid = 33
|
gid = 33
|
||||||
master = true
|
master = true
|
||||||
# No. of processes can be increased
|
# No. of processes can be increased
|
||||||
processes = 2
|
processes = 9
|
||||||
chown-socket =www-data:www-data
|
chown-socket =www-data:www-data
|
||||||
virtualenv = /srv/fet_fotos/.env
|
virtualenv = /srv/flask-fet-fotos/.env
|
||||||
pythonpath = /srv/fet_fotos/
|
pythonpath = /srv/flask-fet-fotos/
|
||||||
#pidfile = /srv/simple_sample_flat_index/uwsgi.pid
|
#pidfile = /srv/simple_sample_flat_index/uwsgi.pid
|
||||||
#socket = /srv/simple_sample_flat_index/uwsgi.sock
|
#socket = /srv/simple_sample_flat_index/uwsgi.sock
|
||||||
pidfile=/var/run/fet_fotos.pid
|
pidfile=/var/run/fet_fotos.pid
|
||||||
socket = /var/run/foto_gallery.sock
|
socket = /var/run/fet_fotos.sock
|
||||||
chmod-socket = 666
|
chmod-socket = 666
|
||||||
module = foto_gallery
|
module = foto_gallery
|
||||||
callable= app
|
callable= app
|
||||||
|
|||||||
Reference in New Issue
Block a user