File tree Expand file tree Collapse file tree 3 files changed +103
-0
lines changed
Expand file tree Collapse file tree 3 files changed +103
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,9 @@ secrets.py
33
44# Compiled
55* .pyc
6+
7+ # Logs
8+ logs /*
9+
10+ # Migrations
11+ * /migrations /*
Original file line number Diff line number Diff line change 1+ upstream up_server {
2+ server unix:/var/sockets/gunicorn.sock fail_timeout=10s;
3+ }
4+
5+ # This is not neccessary - it's just commonly used
6+ # it just redirects example.com -> www.example.com
7+ # so it isn't treated as two separate websites
8+ #server {
9+ # listen 80;
10+ # server_name example.com;
11+ # return 301 $scheme://www.example.com$request_uri;
12+ #}
13+
14+ server {
15+ listen 80 default_server;
16+
17+ client_max_body_size 4G;
18+
19+ access_log /var/www/guideapp/logs/nginx-access.log;
20+ error_log /var/www/guideapp/logs/nginx-error.log warn;
21+
22+ location /static/ {
23+ autoindex on;
24+ alias /var/www/guideapp/guide/static/;
25+ }
26+
27+ location /media/ {
28+ autoindex on;
29+ alias /var/www/guideapp/guide/media/;
30+ }
31+
32+ location / {
33+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
34+ proxy_set_header Host $http_host;
35+ proxy_redirect off;
36+
37+ if (!-f $request_filename) {
38+ proxy_pass http://up_server;
39+ break;
40+ }
41+ }
42+
43+ #For favicon
44+ location /favicon.ico {
45+ alias /var/www/guideapp/guide/static/img/favicon.ico;
46+ }
47+ #For robots.txt
48+ location /robots.txt {
49+ alias /var/www/guideapp/guide/static/robots.txt ;
50+ }
51+ # Error pages
52+ error_page 500 502 503 504 /500.html;
53+ location = /500.html {
54+ root /var/www/guideapp/guide/static/;
55+ }
56+ }
Original file line number Diff line number Diff line change 1+ Cheetah == 2.4.4
2+ Django == 1.9.5
3+ Jinja2 == 2.7.2
4+ Landscape-Client == 14.12
5+ Markdown == 2.6.6
6+ MarkupSafe == 0.18
7+ PAM == 0.4.2
8+ PyYAML == 3.10
9+ Pygments == 1.6
10+ Sphinx == 1.2.2
11+ Twisted-Core == 13.2.0
12+ Twisted-Names == 13.2.0
13+ Twisted-Web == 13.2.0
14+ apt-xapian-index == 0.45
15+ argparse == 1.2.1
16+ chardet == 2.0.1
17+ cloud-init == 0.7.5
18+ colorama == 0.2.5
19+ configobj == 4.7.2
20+ docutils == 0.11
21+ gunicorn == 19.4.5
22+ html5lib == 0.999
23+ jsonpatch == 1.3
24+ jsonpointer == 1.0
25+ oauth == 1.0.1
26+ prettytable == 0.7.2
27+ psycopg2 == 2.6.1
28+ pyOpenSSL == 0.13
29+ pycurl == 7.19.3
30+ pyserial == 2.6
31+ python-apt == 0.9.3.5ubuntu2
32+ python-debian == 0.1.21-nmu2ubuntu2
33+ pytz == 2016.4
34+ requests == 2.2.1
35+ roman == 2.0.0
36+ six == 1.5.2
37+ ssh-import-id == 3.21
38+ urllib3 == 1.7.1
39+ wheel == 0.24.0
40+ wsgiref == 0.1.2
41+ zope.interface == 4.0.5
You can’t perform that action at this time.
0 commit comments