From 2f6d172892e3c4361d4ad7f486c9855eec98fa1f Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Mon, 25 Jan 2021 00:00:37 +0100
Subject: [PATCH] =?UTF-8?q?P=C5=99id=C3=A1na=20uk=C3=A1zkov=C3=A1=20konfig?=
 =?UTF-8?q?urace=20pro=20Nginx?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 etc/nginx.site.example | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 etc/nginx.site.example

diff --git a/etc/nginx.site.example b/etc/nginx.site.example
new file mode 100644
index 00000000..1c3191ff
--- /dev/null
+++ b/etc/nginx.site.example
@@ -0,0 +1,37 @@
+server {
+	listen 195.113.20.177:443 ssl;
+	listen [2001:718:1e03:801::b1]:443 ssl;
+
+	server_name mo.mff.cuni.cz;
+
+	ssl on;
+	ssl_certificate /etc/ssl/domains/mo.mff.cuni.cz/bundle.pem;
+	ssl_certificate_key /etc/ssl/domains/mo.mff.cuni.cz/privkey.pem;
+	ssl_dhparam /etc/ssl/dhparams.pem;
+	ssl_session_cache shared:SSL:10m;
+	ssl_session_timeout 5m;
+
+	client_max_body_size 1G;
+
+	### Production instance of OSMO
+
+	location /osmo {
+		include uwsgi_params;
+		uwsgi_pass unix:/akce/mo/osmo/var/osmo.sock;
+	}
+
+	location /osmo/static/ {
+		alias /akce/mo/osmo/static/;
+	}
+
+	location /osmo/assets/ {
+		location ~ ^/osmo/assets/[^/]+/(.*) {
+			alias /akce/mo/osmo/static/$1;
+		}
+		return 404;
+	}
+
+	location = /osmo/favicon.ico {
+		alias /akce/mo/osmo/static/favicon.ico;
+	}
+}
-- 
GitLab