This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "10", | |
"aliases": { | |
"minio": { | |
"url": "{{ minio_url }}", | |
"accessKey": "{{ postgres_ha_minio_access_key }}", | |
"secretKey": "{{ postgres_ha_minio_secret_key }}", | |
"api": "s3v4", | |
"path": "auto" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo docker stop gitlab | |
sudo docker rm gitlab | |
sudo docker pull gitlab/gitlab-ce:latest | |
sudo docker run --detach \ | |
--hostname gitlab.some.where \ | |
--publish 80:80 \ | |
--publish 443:443 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PHP_BIN='php70' # CentOS 7 PHP из Remi, укажите соответствующий файл, получить его можно через which php | |
PHPIZE_BIN_PATH='/opt/remi/php70/root/bin/phpize' # CentOS 7 PHP из Remi, укажите соответствующий файл, получить его можно через which phpize | |
COMPILER_PACKAGE_INSTALL_COMMAND='yum install gcc-c++ php71-php-devel' # CentOS 7 PHP из Remi, для Debian/Ubuntu это apt-get install g++ | |
PHPCONFIG_BIN_PATH='/opt/remi/php70/root/bin/php-config' # CentOS 7 PHP из Remi, укажите соответствующий файл, получить его можно через which php-config | |
if [[ -x $(which $PHP_BIN) ]]; then | |
PHP_ICU_VERSION=$($PHP_BIN -r 'echo defined("INTL_ICU_VERSION") ? INTL_ICU_VERSION : "none";') | |
echo "PHP ICU version: $PHP_ICU_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name www.site.com site.com; | |
#root /usr/share/nginx/html; | |
include /etc/nginx/default.d/*.conf; | |
location / { | |
proxy_pass http://127.0.0.1:8100; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Real-IP $remote_addr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName example.com | |
ServerAlias www.example.com | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !www.example.com [NC] | |
RewriteRule ^(.*)$ http://www.example.com$1 [L,R=301] | |
DocumentRoot /var/www/example/current/web | |
<Directory /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check for an interactive session | |
[ -z "$PS1" ] && return | |
alias ls='ls --color=auto' | |
PS1='[\u@\h \W]\$ ' | |
bash_prompt() { | |
local NONE="\[\033[0m\]" # unsets color to term's fg color | |