Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add some conf file

  • Loading branch information...
commit 854eb12dfc3f3ce88335a779bb7c2128097f42e7 1 parent ab16354
Hsiaoming Yang authored
Showing with 31 additions and 1 deletion.
  1. +0 −1  conf/babel.cfg
  2. +22 −0 conf/gunicorn.py
  3. +9 −0 conf/supervisord.conf
View
1  conf/babel.cfg
@@ -1,4 +1,3 @@
[python: june/**.py]
-[python: wtforms/wtforms/**.py]
[jinja2: **/templates/**.html]
encoding = utf-8
View
22 conf/gunicorn.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+import multiprocessing
+
+bind = 'unix:/tmp/june.sock'
+#bind = '127.0.0.1:8000'
+workers = multiprocessing.cpu_count() * 2 + 1
+worker_class = 'egg:gunicorn#gevent'
+
+# you should change this
+user = 'lepture'
+
+# maybe you like error
+loglevel = 'warning'
+
+secure_scheme_headers = {
+ 'X-SCHEME': 'https',
+ 'X-FORWARDED-PROTOCOL': 'ssl',
+ 'X-FORWARDED-PROTO': 'https',
+ 'X-FORWARDED-SSL': 'on',
+}
+x_forwarded_for_header = 'X-FORWARDED-FOR'
View
9 conf/supervisord.conf
@@ -0,0 +1,9 @@
+[program:june]
+command = gunicorn run:app -c etc/gunicorn.py
+stdout_logfile = data/gunicorn-stdout.log
+redirect_stderr = true
+
+[program:elasticsearch]
+command=elasticsearch -f -Des.config=etc/elasticsearch.yml
+stdout_logfile = data/elasticsearch-stdout.log
+redirect_stderr = true
Please sign in to comment.
Something went wrong with that request. Please try again.