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

View File

@ -7,15 +7,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Datadog Static Analyzer name: Datadog Static Analyzer
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check code for comitted secrets - name: Check code for comitted secrets
id: datadog-static-analysis id: datadog-static-analysis
uses: DataDog/datadog-static-analyzer-github-action@v1 uses: DataDog/datadog-static-analyzer-github-action@v1
with: with:
dd_api_key: ${{ secrets.DD_API_KEY }} dd_api_key: ${{ secrets.DD_API_KEY }}
dd_app_key: ${{ secrets.DD_APP_KEY }} dd_app_key: ${{ secrets.DD_APP_KEY }}
dd_site: datadoghq.com dd_site: datadoghq.com
secrets_enabled: true secrets_enabled: true
static_analysis_enabled: false static_analysis_enabled: false
cpu_count: 2 cpu_count: 8

View File

@ -167,6 +167,7 @@ COPY . .
CMD ["python", "main.py"] CMD ["python", "main.py"]
``` ```
## Docker Compose Example ## Docker Compose Example
Below is an example `docker-compose.yml` file to deploy Foldsite using Docker Compose: Below is an example `docker-compose.yml` file to deploy Foldsite using Docker Compose:
@ -182,4 +183,4 @@ services:
- .:/app - .:/app
environment: environment:
- CONFIG_PATH=config.toml - CONFIG_PATH=config.toml
``` ```

View File

@ -34,9 +34,9 @@ def generate_thumbnail(image_path, resize_percent, min_width, max_width):
if orientation == 3: if orientation == 3:
img = img.rotate(180, expand=True) img = img.rotate(180, expand=True)
elif orientation == 6: elif orientation == 6:
img = img.rotate(0, expand=True) img = img.rotate(90, expand=True)
elif orientation == 8: elif orientation == 8:
img = img.rotate(180, expand=True) img = img.rotate(270, expand=True)
except (AttributeError, KeyError, IndexError): except (AttributeError, KeyError, IndexError):
# cases: image don't have getexif # cases: image don't have getexif
exif = b"" exif = b""

View File

@ -40,6 +40,7 @@ def create_filemanager_blueprint(base_dir, url_prefix='/files', auth_password=No
return redirect(next_url) return redirect(next_url)
else: else:
flash("Incorrect password") flash("Incorrect password")
#no-dd-sa
return render_template_string(''' return render_template_string('''
<!doctype html> <!doctype html>
<html> <html>