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
| proxy_cache_path /var/cache/nginx/cache levels=1:2 keys_zone=cache:8m max_size=3000m inactive=600m; | |
| proxy_temp_path /var/tmp; | |
| # the IP(s) on which your node server is running. I chose port 3000. | |
| upstream app_the_scratch { | |
| server 127.0.0.1:3000 weight=1 fail_timeout=60s; | |
| } | |
| # the nginx server instance | |
| server { |
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
| ### No longer needed as of nginx-1.13.6-1.el7_4.ngx.x86_64.rpm from nginx.org | |
| ### it was compiled against OpenSSL 1.0.2 from CentoOS 7.4 so it supports ALPN (HTTP2 works) | |
| yum -y groupinstall 'Development Tools' | |
| yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel rpmdevtools | |
| OPENSSL="openssl-1.0.2l" | |
| NGINX_VERSION="1.13.5-1" | |
| NJS_VERSION="1.13.5.0.1.13-1" |
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
| IPTABLES=iptables | |
| IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6 | |
| PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names | |
| /sbin/modprobe --version 2>&1 | grep -q module-init-tools \ | |
| && NEW_MODUTILS=1 \ | |
| || NEW_MODUTILS=0 | |
| # Do not stop if iptables module is not loaded. | |
| [ -e "$PROC_IPTABLES_NAMES" ] || exit 1 |
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
| #!bash.exe | |
| export SSH_AUTH_SOCK=/tmp/.ssh-socket | |
| echo ; | |
| echo Starting connection with ssh-agent... | |
| ssh-add -l 2>&1 >/dev/null | |
| if [ $? = 2 ]; then | |
| rm -f /tmp/.ssh-script /tmp/.ssh-agent-pid /tmp/.ssh-socket | |
| # Exit status 2 means couldn't connect to ssh-agent; start one now | |
| echo Creating new ssh-agent... | |
| ssh-agent -a $SSH_AUTH_SOCK > /tmp/.ssh-script |