-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from dlcs/feature/slf_updates
Various updates prior to SLF release
- Loading branch information
Showing
18 changed files
with
161 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,4 @@ Utils/ | |
**/bld/ | ||
**/[Bb]in/ | ||
**/[Oo]bj/ | ||
**/[Ll]og/ | ||
**/[Ll]og/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,21 +13,21 @@ jobs: | |
|
||
steps: | ||
- id: checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- id: setup-python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
python-version: '3.11' | ||
|
||
- id: pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
- id: docker-setup-buildx | ||
uses: docker/setup-buildx-action@v2 | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- id: docker-meta | ||
uses: docker/metadata-action@v4 | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ghcr.io/dlcs/compositehandler | ||
tags: | | ||
|
@@ -39,18 +39,17 @@ jobs: | |
type=semver,pattern={{major}} | ||
- id: docker-login | ||
uses: docker/login-action@v2 | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- id: docker-build-push | ||
uses: docker/build-push-action@v4 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
builder: ${{ steps.docker-setup-buildx.outputs.name }} | ||
tags: ${{ steps.docker-meta.outputs.tags }} | ||
labels: ${{ steps.docker-meta.outputs.labels }} | ||
push: ${{ github.actor != 'dependabot[bot]' }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,4 +183,4 @@ src/.idea/workspace.xml | |
|
||
# Temp working files | ||
src/scratch/ | ||
scratch/ | ||
scratch/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ set -o errexit | |
set -o pipefail | ||
|
||
bash entrypoint.sh | ||
python manage.py qcluster | ||
python manage.py qcluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# Set number of worker processes automatically based on number of CPU cores. | ||
worker_processes auto; | ||
|
||
# Enables the use of JIT for regular expressions to speed-up their processing. | ||
pcre_jit on; | ||
|
||
# Configures default error logger. | ||
error_log /var/log/nginx/error.log warn; | ||
|
||
events { | ||
# The maximum number of simultaneous connections that can be opened by | ||
# a worker process. | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
# Includes mapping of file name extensions to MIME types of responses | ||
# and defines the default type. | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
# Don't tell nginx version to clients. | ||
server_tokens off; | ||
|
||
# Specifies the maximum accepted body size of a client request, as | ||
# indicated by the request header Content-Length. If the stated content | ||
# length is greater than this size, then the client receives the HTTP | ||
# error code 413. Set to 0 to disable. | ||
client_max_body_size 5M; | ||
|
||
# Timeout for keep-alive connections. Server will close connections after | ||
# this time. | ||
keepalive_timeout 65; | ||
|
||
# Sendfile copies data between one FD and other from within the kernel, | ||
# which is more efficient than read() + write(). | ||
sendfile on; | ||
|
||
# Don't buffer data-sends (disable Nagle algorithm). | ||
# Good for sending frequent small bursts of data in real time. | ||
tcp_nodelay on; | ||
|
||
# Specifies that our cipher suits should be preferred over client ciphers. | ||
ssl_prefer_server_ciphers on; | ||
|
||
# Enables a shared SSL cache with size that can hold around 8000 sessions. | ||
ssl_session_cache shared:SSL:2m; | ||
|
||
# Enable gzipping of responses. | ||
gzip on; | ||
|
||
# Set the Vary HTTP header as defined in the RFC 2616. | ||
gzip_vary on; | ||
|
||
# Enable checking the existence of precompressed files. | ||
gzip_static on; | ||
|
||
# Specifies the main log format. | ||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
# Sets the path, format, and configuration for a buffered log write. | ||
access_log /var/log/nginx/access.log main; | ||
|
||
proxy_connect_timeout 300s; | ||
|
||
proxy_read_timeout 300s; | ||
|
||
server { | ||
listen 8000 default_server; | ||
server_name ""; | ||
|
||
error_log /var/log/nginx/error.log; | ||
access_log /var/log/nginx/access.log; | ||
|
||
location / { | ||
proxy_pass http://127.0.0.1:5000; | ||
proxy_http_version 1.1; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
|
||
# Pass through the static files so they aren't served from Django | ||
location /static { | ||
alias /srv/dlcs/app_static; | ||
} | ||
location /media { | ||
alias /app_media; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("common", "0001_initial"), | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("common", "0002_alter_member_status"), | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("common", "0003_auto_20220112_1454"), | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
asgiref==3.7.2 | ||
attrs==23.1.0 | ||
boto3==1.26.144 | ||
Django==3.2.19 | ||
django-environ==0.10.0 | ||
django-health-check==3.16.4 | ||
boto3==1.29.4 | ||
Django==4.2.7 | ||
django-environ==0.11.2 | ||
django-health-check==3.17.0 | ||
django-q==1.3.9 | ||
djangorestframework==3.12.4 | ||
jsonschema==4.2.1 | ||
djangorestframework==3.14.0 | ||
gunicorn==21.2.0 | ||
jsonschema==4.20.0 | ||
pdf2image==1.16.3 | ||
psutil==5.9.5 | ||
psycopg2-binary==2.9.6 | ||
pyrsistent==0.18.0 | ||
psutil==5.9.6 | ||
psycopg2-binary==2.9.9 | ||
pyrsistent==0.20.0 | ||
pytz==2021.3 | ||
requests==2.26.0 | ||
requests==2.31.0 | ||
sqlparse==0.4.4 | ||
tqdm==4.65.0 | ||
tqdm==4.66.1 |