Merge branch 'main' of https://git.dws.rip/dubey/foldsite
This commit is contained in:
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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""
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user