Skip to content

Commit

Permalink
Feature/imaginary certificate (#1110)
Browse files Browse the repository at this point in the history
* imaginary-docker-compose.yml

* Image process server domain

* change imaginary port back to 8088
  • Loading branch information
JimmyRowland authored Jun 22, 2021
1 parent d5bbe75 commit c509ea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions imaginary-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
imaginary:
image: h2non/imaginary
ports:
- "8088:80"
- "8088:8088"
environment:
- PORT=80
- PORT=8088
command: -concurrency 5 -disable-endpoints form -key ${token} -enable-url-source litefarm-app-secret.nyc3.digitaloceanspaces.com,litefarm-beta-secret.nyc3.digitaloceanspaces.com,litefarm-dev-secret.nyc3.digitaloceanspaces.com,litefarmapp.nyc3.digitaloceanspaces.com,litefarmbeta.nyc3.digitaloceanspaces.com,litefarm.nyc3.digitaloceanspaces.com

2 changes: 1 addition & 1 deletion packages/api/src/controllers/documentController.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const documentController = {
const THUMBNAIL_FORMAT = 'webp';
const THUMBNAIL_WIDTH = '300';

const thumbnail = await axios.get(`http://165.227.105.206:8088/thumbnail?width=${THUMBNAIL_WIDTH}&type=${THUMBNAIL_FORMAT}&url=${encodeURIComponent(presignedUrl)}`, {
const thumbnail = await axios.get(`https://image.litefarm.org/thumbnail?width=${THUMBNAIL_WIDTH}&type=${THUMBNAIL_FORMAT}&url=${encodeURIComponent(presignedUrl)}`, {
headers: {
'API-Key': process.env.IMAGINARY_TOKEN,
},
Expand Down

0 comments on commit c509ea4

Please sign in to comment.