Skip to content

Commit

Permalink
Merge pull request #227 from binary-coffee-dev/develop
Browse files Browse the repository at this point in the history
release 2024.04.02.01
  • Loading branch information
wil92 authored Apr 2, 2024
2 parents 51c9770 + 65a1ea7 commit b817641
Show file tree
Hide file tree
Showing 37 changed files with 19,705 additions and 20,650 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [ 16.x ]
node-version: [ 16.19.1 ]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -104,6 +104,7 @@ jobs:
SMTP_PORT: ${{ secrets.PROD__SMTP_PORT }}
SMTP_USERNAME: ${{ secrets.PROD__SMTP_USERNAME }}
SMTP_PASSWORD: ${{ secrets.PROD__SMTP_PASSWORD }}
BOT_NOTIFICATION_TOKEN: ${{ secrets.BOT_NOTIFICATION_TOKEN }}

- name: Copy project to the hosting
uses: easingthemes/[email protected]
Expand Down Expand Up @@ -158,6 +159,7 @@ jobs:
SMTP_PORT: ${{ secrets.PROD__SMTP_PORT }}
SMTP_USERNAME: ${{ secrets.PROD__SMTP_USERNAME }}
SMTP_PASSWORD: ${{ secrets.PROD__SMTP_PASSWORD }}
BOT_NOTIFICATION_TOKEN: ${{ secrets.BOT_NOTIFICATION_TOKEN }}

- name: Copy project to the hosting
uses: easingthemes/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.strapi-updater.json
.strapi

.env
.nyc_output
Expand Down
13 changes: 4 additions & 9 deletions config/custom.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
module.exports = ({env}) => ({
myCustomConfiguration: 'This configuration is accessible through strapi.routes.myCustomConfiguration',

// toDo (gonzalezext)[19.08.23]: remove this captcha variable
captchaSecret: env('CAPTCHA_SECRET', 'captcha-secret'),

apiUrl: env('API_URL', 'https://api.binarycoffee.dev'),
siteUrl: env('SITE_URL', 'https://binarycoffee.dev'),

feedArticlesLimit: env.int('FEED_ARTICLES_LIMIT', 15),
enableBotNotifications: false,
enableBotNotifications: true,
botNotificationToken: env('BOT_NOTIFICATION_TOKEN', 'bot_token'),
botNotifierUrl: env('BOT_NOTIFIER_URL', 'https://monitor.binarycoffee.dev/notification'),

feedArticlesLimit: env.int('FEED_ARTICLES_LIMIT', 15),
maxPostRequestLimit: 20,
maxSimilarPostRequestLimit: 20,
maxNumberOfArticlesPerDay: 5,
Expand All @@ -23,7 +20,5 @@ module.exports = ({env}) => ({
githubClientId: env('GITHUB_CLIENT_ID', ''),
githubClientSecret: env('GITHUB_CLIENT_SECRET', ''),

botNotifierUrl: env('BOT_NOTIFIER_URL', 'https://botnotifier.binary-coffee.dev/notify/channel'),

podcastEspacioBinarioIdentifier: 'espacio-binario'
});
15 changes: 0 additions & 15 deletions config/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,4 @@ module.exports = ({env}) => ({
},
debug: false,
},
// defaultConnection: 'default',
// connections: {
// default: {
// connector: 'bookshelf',
// settings: {
// client: 'mysql',
// database: env('DATABASE_NAME', 'blog'),
// username: env('DATABASE_USERNAME', 'api'),
// password: env('DATABASE_PASSWORD', 'password'),
// port: env.int('DATABASE_PORT', 3306),
// host: env('DATABASE_HOST', 'mysql')
// },
// options: {},
// }
// }
});
7 changes: 7 additions & 0 deletions config/env/test/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const mainCustom = require('../../custom');

module.exports = ({env}) => ({
...mainCustom({env}),

enableBotNotifications: false,
});
2 changes: 1 addition & 1 deletion config/middlewares.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = [
'strapi::logger',
'strapi::errors',
'strapi::security',
'strapi::cors',
{name: 'strapi::poweredBy', config: {poweredBy: 'Binary Coffee <strapi.io>'}},
'strapi::logger',
'strapi::query',
'strapi::body',
{name: 'strapi::session', config: {signed: false}},
Expand Down
3 changes: 3 additions & 0 deletions create_env_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ echo "NODE_ENV=$NODE_ENV" >> .env
echo "SITE_URL=$SITE_URL" >> .env
echo "API_URL=$API_URL" >> .env

# bot notification
echo "BOT_NOTIFICATION_TOKEN=$BOT_NOTIFICATION_TOKEN" >> .env

# docker configurations
echo "BLOG_RESOURCES=$BLOG_RESOURCES" >> .env

Expand Down
Loading

0 comments on commit b817641

Please sign in to comment.