Skip to content

Instantly share code, notes, and snippets.

@cpjolicoeur
Created August 19, 2013 14:09
Show Gist options
  • Save cpjolicoeur/6269541 to your computer and use it in GitHub Desktop.
Save cpjolicoeur/6269541 to your computer and use it in GitHub Desktop.
14,17c14,15
< set $mimedia_api_key __MIMEDIA_API_KEY__;
< set $server_debug __MIMEDIA_API_DEBUG__;
<
<
---
> set $mimedia_api_key "Anybody seen Godot?";
> set $server_debug true;
22,27c20,22
< server_name __SERVER_NAME__;
< listen __SERVER_HTTP_PORT__;
< listen __SERVER_HTTPS_PORT__ default_server ssl;
<
< root __SERVER_ROOT_PATH__;
< index /;
---
> server_name localhost;
> listen 8080;
> listen 8443 default_server ssl;
28a24,25
> # root /Users/aarongrosenberg/projects/MiMedia/dist/www;
> # index /;
34,35c31,32
< # ssl_certificate __SERVER_CERTS_PATH__/web-client.crt;
< # ssl_certificate_key __SERVER_CERTS_PATH__/web-client.key;
---
> # ssl_certificate ???/web-client.crt;
> # ssl_certificate_key ???/web-client.key;
42,44c39,41
< access_log __ACCESS_LOG_FILENAME__ access;
< error_log __ERROR_LOG_FILENAME__ warn;
< access_log __UPSTREAM_LOG_FILENAME__ upstream;
---
> access_log logs/web-client-access.log access;
> error_log logs/web-cmlient-error.log warn;
> access_log logs/web-client-upstream.log upstream;
51c48
< set $lua_modules_path __SERVER_MODULES_PATH__;
---
> set $lua_modules_path /Users/aarongrosenberg/projects/MiMedia/dist/modules;
68,82c65,79
< location ~* (^|/)\. {
< access_log off;
< log_not_found off;
< deny all;
< }
<
< location ~* (\.(?:bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$ {
< access_log off;
< log_not_found off;
< deny all;
< }
<
< location = /index.html {
< internal;
< }
---
> # location ~* (^|/)\. {
> # access_log off;
> # log_not_found off;
> # deny all;
> # }
> #
> # location ~* (\.(?:bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$ {
> # access_log off;
> # log_not_found off;
> # deny all;
> # }
> #
> # location = /index.html {
> # internal;
> # }
93,96c90,93
< location = /robots.txt {
< access_log off;
< log_not_found off;
< }
---
> # location = /robots.txt {
> # access_log off;
> # log_not_found off;
> # }
102,105c99,102
< location = /humans.txt {
< access_log off;
< log_not_found off;
< }
---
> # location = /humans.txt {
> # access_log off;
> # log_not_found off;
> # }
117,121c114,118
< location ~* \.(?:jpg|jpeg|gif|png|bmp|ico)$ {
< access_log off;
< log_not_found off;
< expires 1d;
< }
---
> # location ~* \.(?:jpg|jpeg|gif|png|bmp|ico)$ {
> # access_log off;
> # log_not_found off;
> # expires 1d;
> # }
128,132c125,129
< location ~* \.(js|json)$ {
<
< ### TODO ###
<
< }
---
> # location ~* \.(js|json)$ {
> #
> # ### TODO ###
> #
> # }
139,143c136,140
< location ~* \.css$ {
<
< ### TODO ###
<
< }
---
> # location ~* \.css$ {
> #
> # ### TODO ###
> #
> # }
219a217,218
> resolver 10.42.0.30;
>
249a249,253
>
> location / {
> proxy_pass http://<grunt>;
> }
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment