Work to flask derrière Nginx

This commit is contained in:
kitoy
2022-08-06 23:49:16 +02:00
parent 083a7147ff
commit b34695a41b
13 changed files with 88 additions and 40 deletions

View File

@@ -43,7 +43,7 @@ def myimg(filename):
return send_from_directory(
os.path.join(DOSSIER_PERSO, UTILISATEUR, 'images'), filename )
else :
return redirect(url_for('loginlogout.login'), code=401)
return redirect(BASE_URL, code=401)
@mygallery.route('/myfiles/images/thumbnails/<filename>')
def mythumbnails(filename):
@@ -52,4 +52,4 @@ def mythumbnails(filename):
return send_from_directory(
os.path.join(DOSSIER_PERSO, UTILISATEUR, 'images/thumbnails'), filename )
else :
return redirect(url_for('loginlogout.login'), code=401)
return redirect(BASE_URL, code=401)