- based on github flow
- promotes devOps
- covers all parts of Deming Cycle
- 4 eyes rule - every task result is seen by at least 4 eyes before deployment
- smaller releases
| server { | |
| listen 443 ssl; | |
| server_name api.example.com; | |
| root /var/www/api/public/; | |
| index index.php index.html index.htm; | |
| ### Begin SSL | |
| ssl_certificate /etc/ssl/custom/api.example.com.crt; | |
| ssl_certificate_key /etc/ssl/custom/api.example.com.key; |
| server { | |
| listen 443 ssl; | |
| server_name api.example.com; | |
| ssl_certificate /etc/ssl/custom/api.example.com.crt; | |
| ssl_certificate_key /etc/ssl/custom/api.example.com.key; | |
| ssl_session_cache shared:SSL:1m; | |
| ssl_session_timeout 5m; |
| docker ps | awk '{print $1}' | sed -n -e '/[^CONTAINER]/p' | xargs docker stats |
| location / { | |
| proxy_set_header Host arrivacz-custom.bileto.com; | |
| proxy_ssl_verify off; | |
| proxy_ssl_session_reuse off; | |
| proxy_ssl_server_name on; | |
| proxy_pass https://arrivacz-custom.bileto.com; | |
| # try_files $uri $uri/ =404; |
| # Authors | |
| git ls-files | grep "yarn.lock" -v | grep "package-lock.json" -v | while read f; do git blame --line-porcelain $f | grep '^author '; done | sort -f | uniq -ic | sort -n | |
| # Size of repository | |
| git ls-files | grep "yarn.lock" -v | grep "package-lock.json" -v | while read f; do git blame --line-porcelain $f | grep '^author '; done | wc -l |
| // Simplified version how we inject JWT AccessToken into panva/oidc-provider | |
| const provider = new Provider(...) | |
| function getTokenData () { | |
| const authorization = _.get(this, 'claims._authorization', {}) | |
| return { | |
| ...authorization, | |
| ...(_.omit(this, ['claims'])) | |
| } |
| import {patchApolloHints} from './patchApollo' | |
| const apolloConfig = { | |
| formatResponse: (response, options) => { | |
| patchApolloHints(response) | |
| // and some more stuff | |
| }, | |
| cacheControl: true | |
| } |
| npm outdated | awk '{if (NR!=1) {print $1 "@latest"}}' | xargs npm i |