From 52952e1e4ec0c49f3a4cc48c68de87c86ac7289d Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 24 Nov 2022 08:07:24 +0000 Subject: [PATCH] Update dotfiles/.local/share/chezmoi/home/private_dot_config/heroku/deploy.yml.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoi.toml.tmpl --- .../share/chezmoi/home/.chezmoi.toml.tmpl | 6 +- .../private_dot_config/heroku/deploy.yml.tmpl | 166 ++++++++++++++++++ 2 files changed, 170 insertions(+), 2 deletions(-) create mode 100644 dotfiles/.local/share/chezmoi/home/private_dot_config/heroku/deploy.yml.tmpl diff --git a/dotfiles/.local/share/chezmoi/home/.chezmoi.toml.tmpl b/dotfiles/.local/share/chezmoi/home/.chezmoi.toml.tmpl index 01b877fe..f77d2bf9 100644 --- a/dotfiles/.local/share/chezmoi/home/.chezmoi.toml.tmpl +++ b/dotfiles/.local/share/chezmoi/home/.chezmoi.toml.tmpl @@ -59,6 +59,7 @@ {{- $restricted = promptBoolOnce $data.host "restricted" "Restricted Environment (no sudo access)" $restricted -}} {{- $name = promptStringOnce $data.user "name" "Your full name" $name -}} {{- $email = promptStringOnce $data.user "email" "Your primary e-mail" $email -}} +{{- $domain = promptStringOnce $data.domain "domain" "Domain" $domain -}} {{- $gmailAddress := promptStringOnce . "G-mail address" -}} {{- $gmailAddressAppPassword := promptStringOnce . "G-mail app password" -}} {{- $ngrokAuthToken := promptStringOnce . "Ngrok authentication token" -}} @@ -97,13 +98,14 @@ sourceDir = {{ .chezmoi.sourceDir | quote }} gmailAddress = {{ $gmailAddress | quote }} gmailAddressAppPassword = {{ $gmailAddressAppPassword | quote }} name = {{ $name | quote }} - DOCKERHUB_TOKEN = + domain = {{ $domain | quote }} + # DOCKERHUB_TOKEN = GITHUB_TOKEN = {{ $githubToken | quote }} GITLAB_TOKEN = {{ $gitlabToken | quote }} NGROK_AUTH_TOKEN = {{ $ngrokAuthToken | quote }} SLACK_API_TOKEN = {{ $slackApiToken | quote }} TABBY_SYNC_TOKEN = "196a3118cc7be31cd13d2862d7e33c122357fd9fa36c2f149e8b018b82c260ab6b72169f4c411a6bedd2b8b4124c3540daa57778f20a28cfe2c797776f9a616c" - VAGRANT_CLOUD_TOKEN = + # VAGRANT_CLOUD_TOKEN = {{- end }} [diff] diff --git a/dotfiles/.local/share/chezmoi/home/private_dot_config/heroku/deploy.yml.tmpl b/dotfiles/.local/share/chezmoi/home/private_dot_config/heroku/deploy.yml.tmpl new file mode 100644 index 00000000..6f8d54c0 --- /dev/null +++ b/dotfiles/.local/share/chezmoi/home/private_dot_config/heroku/deploy.yml.tmpl @@ -0,0 +1,166 @@ +--- +# yamllint disable rule:line-length +# @var heroku_dynos: [] # Settings used for deploying [Heroku](https://www.heroku.com/) dynos. The keys of the `heroku_dynos` can +# be added to the `dynos` array to automatically deploy the apps after you have filled in the appropriate details specified below. +heroku_dynos: + # @dynamo [Baserow](https://baserow.io/) | [GitHub](https://github.com/bram2w/baserow) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/bram2w/baserow/tree/master) | [Documentation](https://baserow.io/docs/installation%2Finstall-on-heroku) - Create your own online database without technical experience. Our user friendly no-code tool gives you the powers of a developer without leaving your browser. + baserow: + deploy_url: https://heroku.com/deploy?template=https://github.com/bram2w/baserow/tree/master + domain: baserow.{{ .user.domain }} + variables: + BASEROW_PUBLIC_URL: https://baserow.{{ .user.domain }} + BASEROW_AMOUNT_OF_WORKERS: '1' + AWS_ACCESS_KEY_ID: The spaces API key. + AWS_SECRET_ACCESS_KEY: The spaces API secret key. + AWS_STORAGE_BUCKET_NAME: The name of your space. + AWS_S3_REGION_NAME: Name of the Digital Ocean spaces region (eg. ams3) + AWS_S3_ENDPOINT_URL: (eg. https://ams3.digitaloceanspaces.com) + AWS_S3_CUSTOM_DOMAIN: (eg. name-of-your-space.ams3.digitaloceanspaces.com) + # @dynamo [hasura](https://hasura.io/) | [GitHub](https://github.com/hasura/graphql-engine-heroku) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku/tree/master) | [Documentation](https://hasura.io/docs/latest) - Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events. + hasura: + deploy_url: https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku + domain: hasura.{{ .user.domain }} + # @dynamo [metabase](https://www.metabase.com) | [GitHub](https://github.com/metabase/metabase) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/metabase/metabase-deploy) | [Documentation](https://www.metabase.com/docs) - Meet the easy, open source way for everyone in your company to ask questions and learn from data. + metabase: + deploy_url: https://heroku.com/deploy?template=https://github.com/metabase/metabase-deploy + domain: metabase.{{ .user.domain }} + # @dynamo [chatwoot](https://www.chatwoot.com) | [GitHub](https://github.com/chatwoot/chatwoot) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/chatwoot/chatwoot/tree/master) | [Documentation](https://www.chatwoot.com/docs/product) - Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc. + chatwoot: + deploy_url: https://heroku.com/deploy?template=https://github.com/chatwoot/chatwoot/tree/master + domain: chatwoot.{{ .user.domain }} + variables: + FRONTEND_URL: https://chatwoot.{{ .user.domain }} + INSTALLATION_ENV: heroku + RACK_ENV: production + RAILS_ENV: production + REDIS_OPENSSL_VERIFY_MODE: none + # @dynamo [url-to-pdf-api](https://github.com/alvarcarto/url-to-pdf-api) | [GitHub](https://github.com/alvarcarto/url-to-pdf-api) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/alvarcarto/url-to-pdf-api) | [Documentation]() - Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content + urltopdf: + deploy_url: https://heroku.com/deploy?template=https://github.com/alvarcarto/url-to-pdf-api + domain: urltopdf.{{ .user.domain }} + variables: + ALLOW_HTTP: false + API_TOKENS: '' + # @dynamo [whoogle](pypi.org/project/whoogle-search/) | [GitHub](https://github.com/benbusby/whoogle-search) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/benbusby/whoogle-search/tree/main) | [Documentation](https://github.com/benbusby/whoogle-search) - A self-hosted, ad-free, privacy-respecting metasearch engine + whoogle: + deploy_url: https://heroku.com/deploy?template=https://github.com/benbusby/whoogle-search/tree/main + domain: whoogle.{{ .user.domain }} + variables: + WHOOGLE_ALT_IG: farside.link/bibliogram/u + WHOOGLE_ALT_IMG: farside.link/rimgo + WHOOGLE_ALT_MD: farside.link/scribe + WHOOGLE_ALT_RD: farside.link/libreddit + WHOOGLE_ALT_TL: farside.link/lingva + WHOOGLE_ALT_TW: farside.link/nitter + WHOOGLE_ALT_WIKI: farside.link/wikiless + WHOOGLE_ALT_YT: farside.link/invidious + WHOOGLE_CONFIG_ALTS: '' + WHOOGLE_CONFIG_BLOCK: '' + WHOOGLE_CONFIG_COUNTRY: countryUS + WHOOGLE_CONFIG_DISABLE: '' + WHOOGLE_CONFIG_GET_ONLY: '' + WHOOGLE_CONFIG_LANGUAGE: lang_en + WHOOGLE_CONFIG_NEAR: '' + WHOOGLE_CONFIG_NEW_TAB: '' + WHOOGLE_CONFIG_SAFE: '' + WHOOGLE_CONFIG_SEARCH_LANGUAGE: lang_en + WHOOGLE_CONFIG_STYLE: ':root { /* LIGHT THEME COLORS */ --whoogle-background: #d8dee9; --whoogle-accent: #2e3440; --whoogle-text: #3B4252; --whoogle-contrast-text: #eceff4; --whoogle-secondary-text: #70757a; --whoogle-result-bg: #fff; --whoogle-result-title: #4c566a; --whoogle-result-url: #81a1c1; --whoogle-result-visited: #a3be8c; /* DARK THEME COLORS */ --whoogle-dark-background: #222; --whoogle-dark-accent: #685e79; --whoogle-dark-text: #fff; --whoogle-dark-contrast-text: #000; --whoogle-dark-secondary-text: #bbb; --whoogle-dark-result-bg: #000; --whoogle-dark-result-title: #1967d2; --whoogle-dark-result-url: #4b11a8; --whoogle-dark-result-visited: #bbbbff; }' + WHOOGLE_CONFIG_THEME: system + WHOOGLE_CONFIG_TOR: '' + WHOOGLE_CONFIG_VIEW_IMAGE: '' + WHOOGLE_MINIMAL: '' + WHOOGLE_PASS: '' + WHOOGLE_PROXY_LOC: '' + WHOOGLE_PROXY_PASS: '' + WHOOGLE_PROXY_TYPE: '' + WHOOGLE_PROXY_USER: '' + WHOOGLE_URL_PREFIX: /whoogle + WHOOGLE_USER: '' + # @dynamo [nocodb](https://nocodb.com/) | [GitHub](https://github.com/nocodb/nocodb) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/nocodb/nocodb-seed-heroku) | [Documentation](https://docs.nocodb.com/) - Open Source Airtable Alternative - turns any MySQL, Postgres, SQLite into a Spreadsheet with REST APIs + nocodb: + deploy_url: https://heroku.com/deploy?template=https://github.com/nocodb/nocodb-seed-heroku + domain: nocodb.{{ .user.domain }} + variables: + NC_ONE_CLICK: true + NODE_TLS_REJECT_UNAUTHORIZED: '0' + AWS_ACCESS_KEY_ID: S3 access key id + AWS_SECRET_ACCESS_KEY: S3 secret access key + AWS_BUCKET: S3 bucket + AWS_BUCKET_PATH: S3 bucket path (like folder within S3 bucket) + # @dynamo [ghost-on-heroku](https://github.com/cobyism/ghost-on-heroku) | [GitHub](https://github.com/cobyism/ghost-on-heroku) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/cobyism/ghost-on-heroku/tree/master) - One-button Heroku deploy for the Ghost blogging platform + ghostonheroku: + deploy_url: https://heroku.com/deploy?template=https://github.com/cobyism/ghost-on-heroku + domain: ghost.{{ .user.domain }} + variables: + PUBLIC_URL: https://ghost.{{ .user.domain }} + S3_ACCESS_KEY_ID: S3 access key id + S3_ACCESS_SECRET_KEY: S3 secret access key + S3_ASSET_HOST_URL: e.g https://my.custom.domain/ + S3_BUCKET_NAME: S3 bucket + S3_BUCKET_REGION: S3 bucket region (e.g. us-east-1) + # @dynamo [tooljet](https://www.tooljet.com/) | [GitHub](https://github.com/tooljet/tooljet) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/tooljet/tooljet/tree/main) | [Documentation](https://docs.tooljet.com/docs/) - Extensible low-code framework for building business applications. Connect to databases, cloud storages, GraphQL, API endpoints, Airtable, etc and build apps using drag and drop application builder. Built using JavaScript/TypeScript. + tooljet: + deploy_url: https://heroku.com/deploy?template=https://github.com/tooljet/tooljet/tree/main + domain: tooljet.{{ .user.domain }} + variables: + DEPLOYMENT_PLATFORM: heroku + DISABLE_MULTI_WORKSPACE: false + DISABLE_SIGNUPS: false + LOCKBOX_MASTER_KEY: m@s73rk8s + NODE_ENV: production + NODE_OPTIONS: --max-old-space-size=4096 + SECRET_KEY_BASE: SomeC0m6l00 + TOOLJET_HOST: https://tooljet.herokuapp.com + TOOLJET_SERVER_URL: https://tooljet.herokuapp.com + # @dynamo [appsmith](https://www.appsmith.com/) | [GitHub](https://github.com/appsmithorg/appsmith) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/appsmithorg/appsmith/tree/master) | [Documentation](https://docs.appsmith.com/) - A powerful open source framework to build internal tools + appsmith: + deploy_url: https://heroku.com/deploy?template=https://github.com/appsmithorg/appsmith/tree/master + domain: appsmith.{{ .user.domain }} + variables: + APPSMITH_DISABLE_TELEMETRY: true + APPSMITH_ENCRYPTION_PASSWORD: 'kna%si*sj19lk>0s' + APPSMITH_ENCRYPTION_SALT: 'm,a-01s' + APPSMITH_MONGODB_URI: mongo.example.com + APPSMITH_SUPERVISOR_PASSWORD: "sdf'6as9I1a" + # @dynamo [directus](https://directus.io) | [GitHub](https://github.com/directus-community/heroku-template) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/directus-community/heroku-template/tree/master) | [Documentation](https://docs.directus.io/) - Power any project with a modern, open source data platform + directus: + deploy_url: https://heroku.com/deploy?template=https://github.com/directus-community/heroku-template + domain: directus.{{ .user.domain }} + variables: + ACCESS_TOKEN_TTL: 15m + ADMIN_EMAIL: admin@email.com + ADMIN_PASSWORD: RandomPasword$ + CACHE_ENABLED: true + CACHE_NAMESPACE: cache + CACHE_STORE: redis + CONFIG_PATH: /app/directus.config.js + DB_CLIENT: pg + EMAIL_SMTP_HOST: smtp.example.com + EMAIL_SMTP_POOL: true + EMAIL_SMTP_PORT: '587' + EMAIL_SMTP_SECURE: false + EMAIL_TRANSPORT: smtp + EXTENSIONS_PATH: /app/extensions + OAUTH_PROVIDERS: '' + PUBLIC_URL: / + RATE_LIMITER_DURATION: '1' + RATE_LIMITER_ENABLED: true + RATE_LIMITER_KEY_PREFIX: rate-limitter + RATE_LIMITER_POINTS: '30' + RATE_LIMITER_STORE: redis + REFRESH_TOKEN_COOKIE_SAME_SITE: true + REFRESH_TOKEN_COOKIE_SECURE: true + REFRESH_TOKEN_TTL: 7d + STORAGE_CLOUD_BUCKET: your-bucket + STORAGE_CLOUD_DRIVER: s3 + STORAGE_CLOUD_ENDPOINT: https://nyc3.digitaloceanspaces.com + STORAGE_CLOUD_KEY: your-s3-key-id + STORAGE_CLOUD_PUBLIC_URL: https://your-bucket.nyc3.digitaloceanspaces.com + STORAGE_CLOUD_REGION: nyc3 + STORAGE_CLOUD_ROOT: / + STORAGE_CLOUD_SECRET: your-s3-secret-key + STORAGE_LOCATIONS: cloud + # @dynamo [manet]https://github.com/vbauer/manet) | [GitHub](https://github.com/vbauer/manet) | [Heroku Deploy](https://heroku.com/deploy?template=https://github.com/vbauer/manet) - Website screenshot service powered by Node.js, SlimerJS and PhantomJS + manet: + deploy_url: https://heroku.com/deploy?template=https://github.com/vbauer/manet + domain: manet.{{ .user.domain }}