Permalink
Browse files

add some conf file

  • Loading branch information...
1 parent ab16354 commit 854eb12dfc3f3ce88335a779bb7c2128097f42e7 Hsiaoming Yang committed Feb 25, 2013
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,4 +1,3 @@
[python: june/**.py]
-[python: wtforms/wtforms/**.py]
[jinja2: **/templates/**.html]
encoding = utf-8
View
@@ -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'
@@ -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

0 comments on commit 854eb12

Please sign in to comment.