This file contains hidden or 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
upstream hornet_dashboard { | |
server 127.0.0.1:8087; | |
} | |
# Rate limit requestsi | |
limit_req_zone $binary_remote_addr zone=hornet_dashboard:2m rate=10r/s; | |
server { | |
limit_req zone=hornet_dashboard burst=25; | |
listen 8081 default_server ssl http2; |
This file contains hidden or 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
upstream hornet_dashboard { | |
server 127.0.0.1:8087; | |
} | |
# Rate limit requestsi | |
limit_req_zone $binary_remote_addr zone=hornet_dashboard:2m rate=10r/s; | |
server { | |
limit_req zone=hornet_dashboard burst=25; | |
listen 8081 default_server ssl http2; |
This file contains hidden or 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
FROM alpine:latest | |
WORKDIR /app | |
LABEL org.label-schema.description="HORNET - The IOTA community node" | |
LABEL org.label-schema.name="gohornet/hornet" | |
LABEL org.label-schema.schema-version="1.0" | |
LABEL org.label-schema.vcs-url="https://github.com/gohornet/hornet" | |
LABEL org.label-schema.usage="https://github.com/gohornet/hornet/blob/master/DOCKER.md" | |
ARG ARCH=x86_64 |
This file contains hidden or 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
# Build image | |
FROM node:10-alpine AS build | |
RUN apk --no-cache add --update \ | |
g++ \ | |
gcc \ | |
libgcc \ | |
libstdc++ \ | |
make \ | |
python && \ | |
npm install --quiet node-gyp -g |
This file contains hidden or 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
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# https://www.nginx.com/resources/wiki/start/ | |
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ | |
# https://wiki.debian.org/Nginx/DirectoryStructure | |
# | |
# In most cases, administrators will remove this file from sites-enabled/ and | |
# leave it as reference inside of sites-available where it will continue to be | |
# updated by the nginx packaging team. |
This file contains hidden or 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
### INSTALL COMMAND: | |
root@test001:/home/ubuntu# apt-get -y install apache2 php7.0 libapache2-mod-php7.0 | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages were automatically installed and are no longer required: | |
libgd3 libjbig0 libtiff5 libvpx3 libxslt1.1 | |
Use 'sudo apt autoremove' to remove them. | |
The following additional packages will be installed: | |
apache2-bin apache2-data libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline |
This file contains hidden or 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
# Ubuntu install wget | |
apt-get install wget -y | |
# CentOS install wget | |
yum install -y wget | |
# Get the script | |
wget https://raw.githubusercontent.com/nuriel77/iri-playbook/master/roles/iri/files/block_tor.sh -O /usr/local/bin/block_tor.sh && chmod +x /usr/local/bin/block_tor.sh | |
# Run the script for the first time |
This file contains hidden or 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
# Run curl to get the oracle package: | |
curl -H 'Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie' -LO http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz | |
# mkdir in /opt and untar it | |
mkdir -p /opt/jdk && tar -zxvf jdk-8u162-linux-x64.tar.gz -C /opt/jdk/ | |
# Link executables: | |
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_162/bin/java 100 | |
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_162/bin/javac 100 |
This file contains hidden or 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/bash | |
function usage(){ | |
cat <<EOF | |
This script will run curl commands to the API endpoint. | |
If any of the tests fails this script will return failure. | |
-a [address] API endpoint | |
-t [seconds] Seconds until connection timeout |
This file contains hidden or 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
from kubernetes import client, config, watch | |
from pprint import pprint, pformat | |
import argparse | |
import logging | |
import urllib3 | |
import threading | |
import signal | |
import time | |
import json | |
import sys |
NewerOlder