-
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.
use x accel redirect on django with nginx (#294)
* use x accel redirect on django with nginx * add user file model and uploader config * add task to clean UserFile * fix store to object storage * fix test * add tests * fix failed tests * fix test * fix user file path * add missing env to test yml
- Loading branch information
1 parent
797904b
commit 404fe83
Showing
24 changed files
with
973 additions
and
70 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
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
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
24 changes: 24 additions & 0 deletions
24
django_project/gap/migrations/0041_preferences_api_use_x_accel_redirect_and_more.py
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,24 @@ | ||
# Generated by Django 4.2.7 on 2024-12-08 15:55 | ||
|
||
from django.db import migrations, models | ||
import gap.models.preferences | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('gap', '0040_datasourcefilecache_size'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='preferences', | ||
name='api_use_x_accel_redirect', | ||
field=models.BooleanField(default=True, help_text='When set to True, Django will send X-Accel-Redirect header to the NGINX to offload the download process to NGINX.'), | ||
), | ||
migrations.AddField( | ||
model_name='preferences', | ||
name='user_file_uploader_config', | ||
field=models.JSONField(blank=True, default=gap.models.preferences.user_file_uploader_config_default, help_text='Config for fsspec uploader to s3 for UserFile.', null=True), | ||
), | ||
] |
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
Oops, something went wrong.