Skip to content

Instantly share code, notes, and snippets.

View nemonweb's full-sized avatar

Nikita Tikhomirov nemonweb

  • Russia
View GitHub Profile
@nemonweb
nemonweb / block.js
Last active February 12, 2018 19:23
react block component
import Block from "../block"
import BlockTitle from "../block_title"
import { FormattedMessage } from "react-intl"
import React from "react"
import styled from "styled-components"
const Wrapper = styled.div``
const Text = styled.div`
font-size: 18px;
@nemonweb
nemonweb / nginx.conf
Created November 29, 2017 12:05
nginx as caching rest-api proxy
upstream backend {
server localhost:8080;
#server backup1.example.com:8080 backup;
#server backup2.example.com:8080 backup;
}
# Set cache dir
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m;
# Set cache key to include identifying components