summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Noel <thomas@univnautes-idp.dev>2014-03-16 16:55:00 (GMT)
committerThomas Noel <thomas@univnautes-idp.dev>2014-03-16 16:55:00 (GMT)
commite8524acf30dd9a8219fbae8ce44db6dd38ee4e28 (patch)
tree89f1549a2944a93858922d12ec7f466a16724c2d
parentdb40a4a857f08a49848f44c444cfa87956fe7e55 (diff)
downloadunivnautes-idp-e8524acf30dd9a8219fbae8ce44db6dd38ee4e28.zip
univnautes-idp-e8524acf30dd9a8219fbae8ce44db6dd38ee4e28.tar.gz
univnautes-idp-e8524acf30dd9a8219fbae8ce44db6dd38ee4e28.tar.bz2
add nginx config example
-rw-r--r--nginx.conf.example35
1 files changed, 35 insertions, 0 deletions
diff --git a/nginx.conf.example b/nginx.conf.example
new file mode 100644
index 0000000..a7c57ec
--- /dev/null
+++ b/nginx.conf.example
@@ -0,0 +1,35 @@
+server {
+ listen 80;
+ server_name univnautes-idp.dev.entrouvert.org;
+
+ location /static/ {
+ alias /home/thomas/univnautes-idp/static/;
+ }
+
+ location / {
+ proxy_pass http://unix:/var/tmp/univnautes-idp.sock;
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Forwarded-SSL on;
+ proxy_set_header X-Forwarded-Protocol ssl;
+ proxy_set_header X-Forwarded-Proto https;
+ }
+}
+
+server {
+ listen 80;
+ server_name ~^(?<site>.+)$;
+
+ location /static/ {
+ root /home/thomas/univnautes-idp/;
+ try_files /tenants/$site$uri $uri =404;
+ }
+
+ location / {
+ proxy_pass http://unix:/var/tmp/univnautes-idp.sock;
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Forwarded-SSL on;
+ proxy_set_header X-Forwarded-Protocol ssl;
+ proxy_set_header X-Forwarded-Proto https;
+ }
+}
+