##TUNING##
System: set file descriptors to 32K or 64K
vim /etc/security/limit.conf
################################################################################ | |
# Method 1: Install using rpm packages (credit to DarkMukke) | |
# | |
rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm | |
rpm --import http://mirror.ghettoforge.org/distributions/gf/RPM-GPG-KEY-gf.el7 | |
# WARNING: removing vim-minimal uninstalls `sudo` if you skip the second step | |
# make sure to at least run `yum install sudo` | |
yum -y remove vim-minimal vim-common vim-enhanced |
############################################################################### | |
## Monit control file | |
############################################################################### | |
## | |
## Comments begin with a '#' and extend through the end of the line. Keywords | |
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'. | |
## | |
## Below you will find examples of some frequently used statements. For | |
## information about the control file, a complete list of statements and | |
## options please have a look in the monit manual. |
import React, { Component } from 'react' | |
import { Redirect } from 'react-router' | |
export default class ContactForm extends Component { | |
constructor () { | |
super(); | |
this.state = { | |
fireRedirect: false | |
} | |
} |
FROM alpine:3.2 | |
MAINTAINER ryan@slatehorse.com | |
RUN apk add --update nginx openssl && rm -rf /var/cache/apk/* | |
COPY ./nginx.conf /etc/nginx/nginx.conf | |
# Generate certificates | |
ENV CERTIFICATE_DIR=/usr/local/app/certs |
require 'eventmachine' | |
require 'socket' | |
require 'kgio' | |
server = Kgio::TCPServer.new('0.0.0.0', 4242) | |
module Dispatch | |
def notify_readable | |
io = @io.kgio_tryaccept or return | |
EventMachine.attach(io, Server) |