This commit is contained in:
2025-07-06 22:20:23 -04:00
4 changed files with 17 additions and 15 deletions

View File

@ -18,4 +18,4 @@ jobs:
dd_site: datadoghq.com
secrets_enabled: true
static_analysis_enabled: false
cpu_count: 2
cpu_count: 8

View File

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

View File

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

View File

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