* 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> * Update deploy workflow * Fix NSFW video embeds * Fix small embed sizes * Update gitignore * Fix/workarounds for failing tests * Revert "Add info message for #74" This reverts commit 39490a49b98ba6e56a109958dab4cb953ede4fe8. * Fixed tweet not found error * Fix tweet not found test * 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> * 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> * 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> * Fix text trimming w/ old limits * Revert "Fix text trimming w/ old limits" This reverts commit 9d9c32b79728aece09fd1fa44625f23ee2b8cb92. * Fix text trimming with images and text posts * 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> * Increased timeout to 15 * Fixed QRTs sometimes failing to embed * 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> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
82 lines
2.3 KiB
YAML
82 lines
2.3 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, ''}
|
|
|
|
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 |