Merge branch 'main' of https://git.dws.rip/dubey/foldsite
This commit is contained in:
@ -18,4 +18,4 @@ jobs:
|
||||
dd_site: datadoghq.com
|
||||
secrets_enabled: true
|
||||
static_analysis_enabled: false
|
||||
cpu_count: 2
|
||||
cpu_count: 8
|
||||
|
@ -167,6 +167,7 @@ COPY . .
|
||||
CMD ["python", "main.py"]
|
||||
```
|
||||
|
||||
|
||||
## Docker Compose Example
|
||||
|
||||
Below is an example `docker-compose.yml` file to deploy Foldsite using Docker Compose:
|
||||
|
@ -34,9 +34,9 @@ def generate_thumbnail(image_path, resize_percent, min_width, max_width):
|
||||
if orientation == 3:
|
||||
img = img.rotate(180, expand=True)
|
||||
elif orientation == 6:
|
||||
img = img.rotate(0, expand=True)
|
||||
img = img.rotate(90, expand=True)
|
||||
elif orientation == 8:
|
||||
img = img.rotate(180, expand=True)
|
||||
img = img.rotate(270, expand=True)
|
||||
except (AttributeError, KeyError, IndexError):
|
||||
# cases: image don't have getexif
|
||||
exif = b""
|
||||
|
@ -40,6 +40,7 @@ def create_filemanager_blueprint(base_dir, url_prefix='/files', auth_password=No
|
||||
return redirect(next_url)
|
||||
else:
|
||||
flash("Incorrect password")
|
||||
#no-dd-sa
|
||||
return render_template_string('''
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
Reference in New Issue
Block a user