Open ssl.conf in a text editor.
Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
| #!/bin/bash | |
| sudo apt-get update | |
| # install dependencies | |
| sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
| # add the gpg key for docker | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
| #!/usr/bin/env bash | |
| # Require environment variable: | |
| # AWS_ACCESS_KEY_ID | |
| # AWS_SECRET_ACCESS_KEY | |
| set -e | |
| BUCKET=dt-odoo-backup | |
| echo "Get latest db backup" | |
| aws s3 ls $BUCKET --recursive | grep \.*sql | sort | tail -n 1 | awk '{print $4}' | while read -r line; do |
| #! /usr/bin/python | |
| import datetime | |
| import time | |
| import urllib2 | |
| from contextlib import closing | |
| from urllib import urlencode | |
| def http_get(url): |
| #! /usr/bin/python | |
| import boto3 | |
| import subprocess | |
| import datetime | |
| import os | |
| import zipfile | |
| import humanize | |
| WORKING_DIR = "/tmp" |
| #! /usr/bin/python | |
| import boto3 | |
| import subprocess | |
| import datetime | |
| import os | |
| now = datetime.datetime.now() | |
| bucket = "dtcorpbackup" | |
| filename = "dump_{}-{:0>2}-{:0>2}_{:0>2}:{:0>2}:{:0>2}.sql".format(now.year, now.month, now.day, now.hour, now.minute, now.second) |
| function (user, context, callback) { | |
| var namespace = 'https://tojs.io/'; | |
| context.accessToken[namespace + 'user_authorization'] = { | |
| groups: user.app_metadata.groups, | |
| roles: user.app_metadata.roles, | |
| permissions: user.app_metadata.permissions | |
| }; | |
| return callback(null, user, context); | |
| } |
| usage() | |
| { | |
| echo "usage: get-rds-free-storage.sh -i instance -r region" | |
| } | |
| REGION="ap-southeast-1" | |
| START="$(date -v '-5M' -u '+%Y-%m-%dT%H:%M:%SZ')" # 5 minutes ago | |
| END="$(date -u '+%Y-%m-%dT%H:%M:%SZ')" | |
| INSTANCE_NAME="mydb" |
| #!/usr/bin/env bash | |
| # Run this script to prepare DB for "prod" profile. | |
| # Require environment variable: | |
| # AWS_ACCESS_KEY_ID | |
| # AWS_SECRET_ACCESS_KEY | |
| set -e | |
| BUCKET=dtcorpbackup | |
| echo "Get latest backup" |