commitaae42b88c9
Merge:f2cec85
ab59881
Author: Dylan <dylanpdx@gmail.com> Date: Thu Jun 15 09:16:46 2023 +0100 Merge branch 'main' of github.com:dylanpdx/BetterTwitFix commitf2cec8521f
Author: Dylan <dylanpdx@gmail.com> Date: Thu Jun 15 09:16:41 2023 +0100 Very very quick fix for API changes commitab5988148c
Merge:16f133a
1511551
Author: Dylan <dylanpdx@gmail.com> Date: Sat Jun 3 15:04:23 2023 +0100 Merge pull request #98 from dylanpdx/dependabot/pip/boto3-1.26.146 Bump boto3 from 1.26.133 to 1.26.146 commit1511551719
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat Jun 3 13:34:51 2023 +0000 Bump boto3 from 1.26.133 to 1.26.146 Bumps [boto3](https://github.com/boto/boto3) from 1.26.133 to 1.26.146. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](https://github.com/boto/boto3/compare/1.26.133...1.26.146) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> commit16f133a11b
Merge:9f8f3ea
6b884d4
Author: Dylan <dylanpdx@gmail.com> Date: Sat Jun 3 14:34:10 2023 +0100 Merge pull request #96 from dylanpdx/dependabot/pip/requests-2.31.0 Bump requests from 2.30.0 to 2.31.0 commit6b884d42b0
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon May 29 02:00:29 2023 +0000 Bump requests from 2.30.0 to 2.31.0 Bumps [requests](https://github.com/psf/requests) from 2.30.0 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.30.0...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> commit9f8f3ea41e
Merge:cda291f
a710867
Author: Dylan <dylanpdx@gmail.com> Date: Tue May 16 15:44:07 2023 +0100 Merge branch 'prod' into main commitcda291fe9e
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue May 16 15:42:18 2023 +0100 Bump boto3 from 1.26.129 to 1.26.133 (#92) Bumps [boto3](https://github.com/boto/boto3) from 1.26.129 to 1.26.133. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](https://github.com/boto/boto3/compare/1.26.129...1.26.133) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit5cb8d479f5
Author: Dylan <dylanpdx@gmail.com> Date: Tue May 16 15:40:34 2023 +0100 Fixed QRTs sometimes failing to embed commitb7f285c2cd
Merge:66c0044
49ec005
Author: Dylan <dylanpdx@gmail.com> Date: Tue May 16 15:32:28 2023 +0100 Merge branch 'main' of github.com:dylanpdx/BetterTwitFix commit66c004453b
Author: Dylan <dylanpdx@gmail.com> Date: Sun May 14 22:04:35 2023 +0100 Increased timeout to 15 commit49ec0059cd
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue May 9 16:53:02 2023 +0100 Bump boto3 from 1.26.127 to 1.26.129 (#90) Bumps [boto3](https://github.com/boto/boto3) from 1.26.127 to 1.26.129. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](https://github.com/boto/boto3/compare/1.26.127...1.26.129) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commitc395c00a11
Author: Dylan <dylanpdx@gmail.com> Date: Fri May 5 14:08:23 2023 +0100 Fix text trimming with images and text posts commitc6840ad093
Author: Dylan <dylanpdx@gmail.com> Date: Fri May 5 13:56:45 2023 +0100 Revert "Fix text trimming w/ old limits" This reverts commit9d9c32b797
. commit9d9c32b797
Author: Dylan <dylanpdx@gmail.com> Date: Fri May 5 13:46:42 2023 +0100 Fix text trimming w/ old limits commitdda1187f4a
Merge:14c9426
f0065ce
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 23:48:42 2023 +0100 Merge branch 'prod' into main commit14c942645c
Merge:d621bfc
e895e4c
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 23:45:19 2023 +0100 Merge pull request #84 from dylanpdx/dependabot/pip/requests-2.30.0 Bump requests from 2.28.2 to 2.30.0 commite895e4c876
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu May 4 22:44:08 2023 +0000 Bump requests from 2.28.2 to 2.30.0 Bumps [requests](https://github.com/psf/requests) from 2.28.2 to 2.30.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.30.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> commitd621bfc8a8
Merge:727d144
98e006b
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 23:43:28 2023 +0100 Merge pull request #86 from dylanpdx/dependabot/pip/boto3-1.26.127 Bump boto3 from 1.26.104 to 1.26.127 commit727d144ece
Merge:1a698c1
618a644
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 23:42:04 2023 +0100 Merge pull request #87 from dylanpdx/dependabot/npm_and_yarn/simple-git-3.18.0 Bump simple-git from 3.7.1 to 3.18.0 commit618a644070
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu May 4 22:40:58 2023 +0000 Bump simple-git from 3.7.1 to 3.18.0 Bumps [simple-git](https://github.com/steveukx/git-js/tree/HEAD/simple-git) from 3.7.1 to 3.18.0. - [Release notes](https://github.com/steveukx/git-js/releases) - [Changelog](https://github.com/steveukx/git-js/blob/main/simple-git/CHANGELOG.md) - [Commits](https://github.com/steveukx/git-js/commits/simple-git@3.18.0/simple-git) --- updated-dependencies: - dependency-name: simple-git dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> commit98e006b31c
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu May 4 22:39:39 2023 +0000 Bump boto3 from 1.26.104 to 1.26.127 Bumps [boto3](https://github.com/boto/boto3) from 1.26.104 to 1.26.127. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](https://github.com/boto/boto3/compare/1.26.104...1.26.127) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> commit1a698c1d6f
Merge:a6eb39e
8205ef2
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 23:38:58 2023 +0100 Merge pull request #71 from dylanpdx/dependabot/pip/pillow-9.5.0 Bump pillow from 9.4.0 to 9.5.0 commita6eb39e545
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 23:35:52 2023 +0100 Fix tweet not found test commitd84938ee08
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 23:29:12 2023 +0100 Fixed tweet not found error commit69b99dcc9b
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 23:08:11 2023 +0100 Revert "Add info message for #74" This reverts commit39490a49b9
. commit8674c8d828
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 23:07:15 2023 +0100 Fix/workarounds for failing tests commit3127fff1ae
Author: Dylan <dylanpdx@gmail.com> Date: Thu May 4 22:45:55 2023 +0100 Update gitignore commit6244c875c4
Author: Dylan <dylanpdx@gmail.com> Date: Sun Apr 9 23:11:31 2023 +0100 Fix small embed sizes commitedfeefbc00
Author: Dylan <dylanpdx@gmail.com> Date: Sun Apr 9 22:26:38 2023 +0100 Fix NSFW video embeds commitdd961df082
Author: Dylan <dylanpdx@gmail.com> Date: Sat Apr 8 18:11:14 2023 +0100 Update deploy workflow commit8205ef2400
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat Apr 8 16:59:27 2023 +0000 Bump pillow from 9.4.0 to 9.5.0 Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.4.0 to 9.5.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/9.4.0...9.5.0) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
83 lines
2.4 KiB
YAML
83 lines
2.4 KiB
YAML
service: vxTwitter
|
|
|
|
provider:
|
|
name: aws
|
|
runtime: python3.8
|
|
stage: dev
|
|
iamRoleStatements:
|
|
- Effect: Allow
|
|
Action:
|
|
- dynamodb:Query
|
|
- dynamodb:Scan
|
|
- dynamodb:GetItem
|
|
- dynamodb:PutItem
|
|
- dynamodb:UpdateItem
|
|
- dynamodb:DeleteItem
|
|
Resource:
|
|
- { "Fn::GetAtt": ["vxTwitterDynamoTable", "Arn" ] }
|
|
environment:
|
|
VXTWITTER_CACHE_TABLE: ${self:custom.tableName}
|
|
RUNNING_SERVERLESS: 1
|
|
VXTWITTER_LINK_CACHE: ${env:VXTWITTER_LINK_CACHE, 'json'}
|
|
VXTWITTER_DATABASE: ${env:VXTWITTER_DATABASE, 'none'}
|
|
VXTWITTER_METHOD: ${env:VXTWITTER_METHOD, 'hybrid'}
|
|
VXTWITTER_COLOR: ${env:VXTWITTER_COLOR, '#43B581'}
|
|
VXTWITTER_APP_NAME: ${env:VXTWITTER_APP_NAME, 'vxTwitter'}
|
|
VXTWITTER_REPO: ${env:VXTWITTER_REPO, 'https://github.com/dylanpdx/BetterTwitFix'}
|
|
VXTWITTER_URL: ${env:VXTWITTER_URL, 'https://vxtwitter.com'}
|
|
VXTWITTER_COMBINATION_METHOD: ${env:VXTWITTER_COMBINATION_METHOD, 'local'}
|
|
VXTWITTER_GIF_CONVERT_API: ${env:VXTWITTER_GIF_CONVERT_API, ''}
|
|
VXTWITTER_WORKAROUND_CONSUMER_KEY: ${env:VXTWITTER_WORKAROUND_CONSUMER_KEY, ''}
|
|
VXTWITTER_WORKAROUND_CONSUMER_SECRET: ${env:VXTWITTER_WORKAROUND_CONSUMER_SECRET, ''}
|
|
VXTWITTER_WORKAROUND_TOKEN: ${env:VXTWITTER_WORKAROUND_TOKEN, ''}
|
|
VXTWITTER_WORKAROUND_TOKEN_SECRET: ${env:VXTWITTER_WORKAROUND_TOKEN_SECRET, ''}
|
|
VXTWITTER_WORKAROUND_TOKENS: ${env:VXTWITTER_WORKAROUND_TOKENS, ''}
|
|
|
|
package:
|
|
patterns:
|
|
- '!node_modules/**'
|
|
- '!venv/**'
|
|
|
|
plugins:
|
|
- serverless-wsgi
|
|
- serverless-python-requirements
|
|
- serverless-plugin-common-excludes
|
|
- serverless-plugin-include-dependencies
|
|
|
|
functions:
|
|
vxTwitterApp:
|
|
handler: wsgi_handler.handler
|
|
url: true
|
|
timeout: 15
|
|
memorySize: 150
|
|
layers:
|
|
- Ref: PythonRequirementsLambdaLayer
|
|
|
|
|
|
custom:
|
|
tableName: 'tweets-table-${self:provider.stage}'
|
|
wsgi:
|
|
app: twitfix.app
|
|
pythonRequirements:
|
|
layer: true
|
|
dockerizePip: false
|
|
|
|
|
|
resources:
|
|
Resources:
|
|
vxTwitterDynamoTable:
|
|
Type: 'AWS::DynamoDB::Table'
|
|
Properties:
|
|
AttributeDefinitions:
|
|
-
|
|
AttributeName: tweet
|
|
AttributeType: S
|
|
KeySchema:
|
|
-
|
|
AttributeName: tweet
|
|
KeyType: HASH
|
|
TableName: ${self:custom.tableName}
|
|
BillingMode: PAY_PER_REQUEST
|
|
TimeToLiveSpecification:
|
|
AttributeName: ttl
|
|
Enabled: true |