Skip to content

Instantly share code, notes, and snippets.

View wmzy's full-sized avatar

wmzy wmzy

  • 南京
View GitHub Profile
@wmzy
wmzy / nginx.conf
Last active October 17, 2024 04:20
spa nginx config | 单页应用 nginx 配置
upstream backend {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name your.hostname.com;
proxy_set_header Host $http_host;
access_log /tmp/test-access.log debug;
rewrite_log on;
@wmzy
wmzy / FormEx.jsx
Last active January 18, 2017 08:11
import React, {Component, PropTypes} from 'react';
import {Form} from 'formsy-react';
import classNames from 'classnames';
class FormEx extends Form {
static defaultProps = {
...Form.defaultProps,
prefixCls: 'ant-form'
};