Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Thumbor variables #900

Merged
merged 4 commits into from
Dec 5, 2023
Merged

Thumbor variables #900

merged 4 commits into from
Dec 5, 2023

Conversation

monodo
Copy link
Collaborator

@monodo monodo commented Dec 5, 2023

No description provided.

@@ -521,12 +520,14 @@ def image_thumbor_display(request, submission_id, image_name):
thumbor_params += f"{width}x{height}/filters:format({format})"

if settings.USE_THUMBOR:
print(settings.THUMBOR_SERVICE_URL)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

)
except requests.exceptions.RequestException as e:
response = requests.get(image_url)
print(e)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

# Use this network to communicate with thumbor image resize service
# More information here: https://gitlab.com/geocity/thumbor-service
thumbor_network:
external: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need name: ${ISOLATED_NETWORK_NAME} ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, with this approach any geocity instance on the host can connect to the thumbor service on same host by attaching to the (pre-existing) thumbor_network

@AlexandreJunod AlexandreJunod merged commit 096c2e5 into feature/ylba-24 Dec 5, 2023
2 checks passed
@AlexandreJunod AlexandreJunod deleted the thumbor_variables branch December 5, 2023 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants