I hereby claim:
- I am aramalipoor on github.
- I am alipoor (https://keybase.io/alipoor) on keybase.
- I have a public key ASBjjvuvZdOlwS8JHQWRBzYVx9d4L05-8oGdJcVpA-7SQQo
To claim this, I am signing this object:
# See the full docs: https://docs.erpc.cloud | |
# Endpoints from: https://chainlist.org/chain/1 | |
logLevel: debug | |
projects: | |
- id: main | |
networkDefaults: | |
failsafe: | |
timeout: | |
duration: "30s" |
I hereby claim:
To claim this, I am signing this object:
To expose Kafka port externally enable SSL/TLS configuration in Kafka.
<YOUR_KAFKA_DOMAIN_HERE>
and passphrase (i.e. test1234).oc create secret generic kafka-ssl --from-file=/absolute/path/to/generated/certs/dir
# For ES 6.x Java XML Bind module must be explicitly added | |
ES_JAVA_OPTS=-Xms1000m -Xmx1000m -Des.logger.level=DEBUG --add-modules java.xml.bind |
# You can edit a BuildConfig's YAML either via UI | |
# or by running `oc edit bc/MY_APP` | |
spec: | |
# ... | |
source: | |
# ... | |
secrets: | |
# This path must be relative when BuildConfig's "strategy" is Docker | |
- destinationDir: secrets/github-myorg | |
secret: |
FROM debian | |
RUN apt-get update -y && \ | |
# SSH and git binaries are required | |
apt-get install -y curl ssh git && \ | |
# Prepare required configurations and directories | |
mkdir -p /root/.ssh && \ | |
git config --global user.name "example" && \ |
If CloudFlare cache is disabled (the cloud icon in DNS settings is turned off, i.e. gray), the nginx config in our examples would work and gives you the real IP in REMOTE_ADDR
variable.
If you need to keep CF cache enabled (the cloud icon is active and orange) adding code below to nginx config will give you user's real IP in REMOTE_ADDR variable:
server {
// ...
real_ip_recursive on;
real_ip_header X-Forwarded-For;
# Prepare required directories for Newrelic installation | |
RUN mkdir -p /var/log/newrelic /var/run/newrelic && \ | |
touch /var/log/newrelic/php_agent.log /var/log/newrelic/newrelic-daemon.log && \ | |
chmod -R g+ws /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
chown -R 1001:0 /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
# Download and install Newrelic binary | |
export NEWRELIC_VERSION=$(curl -sS https://download.newrelic.com/php_agent/release/ | sed -n 's/.*>\(.*linux-musl\).tar.gz<.*/\1/p') && \ | |
cd /tmp && curl -sS "https://download.newrelic.com/php_agent/release/${NEWRELIC_VERSION}.tar.gz" | gzip -dc | tar xf - && \ | |
cd "${NEWRELIC_VERSION}" && \ |