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:
#! /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) |
#! /usr/bin/python | |
import boto3 | |
import subprocess | |
import datetime | |
import os | |
import zipfile | |
import humanize | |
WORKING_DIR = "/tmp" |
#! /usr/bin/python | |
import datetime | |
import time | |
import urllib2 | |
from contextlib import closing | |
from urllib import urlencode | |
def http_get(url): |
#!/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 |
#!/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 - |
import ( | |
"fmt" | |
"errors" | |
tce "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" | |
) | |
// Way 1 | |
if _, ok := err.(*tce.TencentCloudSDKError); ok { | |
return fmt.Errorf("An API error has returned: %s", err) |
# Create image pull secret | |
kubectl delete secret gitlab-registry-creds --ignore-not-found | |
kubectl create secret docker-registry gitlab-registry-creds \ | |
--docker-server=https://${CI_REGISTRY} \ | |
--docker-username=${CI_DEPLOY_USER} \ | |
--docker-password=${CI_DEPLOY_PASSWORD} |
/** | |
* options for JCRAuthenticationModule module: | |
* realm: to restrict the login to a certain realm | |
* use_realm_callback: to allow the GUI to pass the realm to login into | |
* skip_on_previous_success: if true the login is scipped if a former module proceeded a successfull login | |
* | |
* example: | |
* info.magnolia.jaas.sp.jcr.JCRAuthenticationModule requisite realm=public; | |
* info.magnolia.jaas.sp.jcr.JCRAuthenticationModule requisite realm=admin skip_on_previous_success=true; | |
*/ |
package ciphers | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/sha512" | |
"crypto/x509" | |
"encoding/pem" | |
"log" | |
) |