aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/nginx.conf.example22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/nginx.conf.example b/config/nginx.conf.example
new file mode 100644
index 000000000..158864aa5
--- /dev/null
+++ b/config/nginx.conf.example
@@ -0,0 +1,22 @@
+upstream alaveteli {
+ server 127.0.0.1:3300;
+}
+
+server {
+ listen 80;
+ root /var/www/alaveteli;
+
+ location / {
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Forwarded-Proto http;
+ proxy_redirect off;
+ try_files $uri @ruby;
+ }
+
+ location @ruby {
+ proxy_pass http://alaveteli;
+ proxy_set_header Host $http_host;
+ }
+}