Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-deposit
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Platform
Development
Debian Packaging
swh-deposit
Commits
0d347d14
Commit
0d347d14
authored
1 year ago
by
Jenkins for Software Heritage
Browse files
Options
Downloads
Plain Diff
New upstream version 1.4.2
parents
e911bfa2
99bfc3ca
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
PKG-INFO
+1
-1
1 addition, 1 deletion
PKG-INFO
swh.deposit.egg-info/PKG-INFO
+1
-1
1 addition, 1 deletion
swh.deposit.egg-info/PKG-INFO
swh/deposit/settings/production.py
+16
-4
16 additions, 4 deletions
swh/deposit/settings/production.py
with
18 additions
and
6 deletions
PKG-INFO
+
1
−
1
View file @
0d347d14
Metadata-Version: 2.1
Name: swh.deposit
Version: 1.4.
1
Version: 1.4.
2
Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers
...
...
This diff is collapsed.
Click to expand it.
swh.deposit.egg-info/PKG-INFO
+
1
−
1
View file @
0d347d14
Metadata-Version: 2.1
Name: swh.deposit
Version: 1.4.
1
Version: 1.4.
2
Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers
...
...
This diff is collapsed.
Click to expand it.
swh/deposit/settings/production.py
+
16
−
4
View file @
0d347d14
...
...
@@ -123,15 +123,27 @@ if cfg_azure:
f
"
Production: invalid configuration; missing
{
key
}
config entry.
"
)
# Default options
options
=
dict
(
azure_container
=
cfg_azure
[
"
container_name
"
],
connection_string
=
cfg_azure
[
"
connection_string
"
],
)
# Which may be enhanced with some extra options, lookup "object_parameters" in
# https://django-storages.readthedocs.io/en/latest/backends/azure.html
object_parameters
=
{}
for
optional_config_key
in
[
"
content_type
"
,
"
content_disposition
"
]:
if
optional_config_key
in
cfg_azure
:
object_parameters
[
optional_config_key
]
=
cfg_azure
[
optional_config_key
]
options
.
update
(
dict
(
object_parameters
=
object_parameters
))
STORAGES
=
{
"
staticfiles
"
:
{
"
BACKEND
"
:
"
django.contrib.staticfiles.storage.StaticFilesStorage
"
},
"
default
"
:
{
"
BACKEND
"
:
"
storages.backends.azure_storage.AzureStorage
"
,
"
OPTIONS
"
:
{
"
azure_container
"
:
cfg_azure
[
"
container_name
"
],
"
connection_string
"
:
cfg_azure
[
"
connection_string
"
],
},
"
OPTIONS
"
:
options
,
},
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment