Last active
January 7, 2016 18:44
-
-
Save reactima/1eafd2fe7fa5fb1c2d49 to your computer and use it in GitHub Desktop.
Dokku nginx files for https://github.com/dokku/dokku/issues/1806#issuecomment-167851650
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen [::]:80; | |
listen 80; | |
server_name koa-todo.something.com ; | |
access_log /var/log/nginx/koa-todo-access.log; | |
error_log /var/log/nginx/koa-todo-error.log; | |
location / { | |
gzip on; | |
gzip_min_length 1100; | |
gzip_buffers 4 32k; | |
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml; | |
gzip_vary on; | |
gzip_comp_level 6; | |
proxy_pass http://koa-todo; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection upgrade; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header X-Forwarded-Port $server_port; | |
proxy_set_header X-Request-Start $msec; | |
} | |
include /home/dokku/koa-todo/nginx.conf.d/*.conf; | |
} | |
upstream koa-todo { | |
server 172.17.0.7:5000; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen [::]:80; | |
listen 80; | |
access_log /var/log/nginx/redux-search-access.log; | |
error_log /var/log/nginx/redux-search-error.log; | |
location / { | |
gzip on; | |
gzip_min_length 1100; | |
gzip_buffers 4 32k; | |
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml; | |
gzip_vary on; | |
gzip_comp_level 6; | |
proxy_pass http://redux-search; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection upgrade; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header X-Forwarded-Port $server_port; | |
proxy_set_header X-Request-Start $msec; | |
} | |
include /home/dokku/redux-search/nginx.conf.d/*.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment