update file server.xml
<!-- Lines added to solve the URL scheme mismatch -->
scheme="https"
proxyName="example.org"
proxyPort="443"
/>
1. Backup | |
sudo gitlab-ctl stop unicorn | |
sudo gitlab-ctl stop sidekiq | |
sudo gitlab-ctl stop nginx | |
sudo gitlab-rake gitlab:backup:create | |
Back-ups are stored in /var/opt/gitlab/backup | |
2. Upgrade | |
sudo yum install gitlab-ce |
wp-config.php | |
``` | |
// If WordPress is behind reverse proxy | |
// which proxies https to http | |
if ( (!empty( $_SERVER['HTTP_X_FORWARDED_HOST'])) || | |
(!empty( $_SERVER['HTTP_X_FORWARDED_FOR'])) ) { | |
// http://wordpress.org/support/topic/wordpress-behind-reverse-proxy-1 | |
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST']; |
199.47.216.0 - 199.47.219.255 | |
108.160.160.0 - 108.160.175.255 | |
205.189.0.0 - 205.189.0.255 |
cat /usr/lib/firewalld/services/rancher.xml | |
<?xml version="1.0" encoding="utf-8"?> | |
<service> | |
<short>rancher</short> | |
<description>Rancher is an open source project that provides a complete platform for operating Docker in production.</description> | |
<port protocol="tcp" port="8080"/> | |
<port protocol="udp" port="4500"/> | |
<port protocol="udp" port="500"/> | |
</service> |
update file server.xml
<!-- Lines added to solve the URL scheme mismatch -->
scheme="https"
proxyName="example.org"
proxyPort="443"
/>
In file: $HOME/.local/share/applications/google-chrome.desktop | |
find the line: Exec=/opt/google/chrome/chrome | |
and add a space and %U: Exec=/opt/google/chrome/chrome %U | |
then save the file . |
yum install -y postgresql-libs python-psycopg2 psycopg2 postgresql-lib \ | |
postgresql-devel libxml2-devel python-devel libxslt-devel gcc libffi-devel openssl-devel | |
yum install centos-release-SCL | |
yum install python27 | |
scl enable python27 bash | |
pip install -U sentry |
#! coding: utf-8 | |
import sys | |
import socket | |
import time | |
import commands | |
import datetime | |
GOOD_IPv4_PREFIXES = [ |
vim ~/.lftp/rc | |
set ssl:verify-certificate no |
$ wget -qO- http://ipecho.net/plain ; echo |