summaryrefslogtreecommitdiffstats
path: root/deployment/nginx.site
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/nginx.site')
-rw-r--r--deployment/nginx.site19
1 files changed, 19 insertions, 0 deletions
diff --git a/deployment/nginx.site b/deployment/nginx.site
new file mode 100644
index 0000000..cd21099
--- /dev/null
+++ b/deployment/nginx.site
@@ -0,0 +1,19 @@
+server {
+ listen 80 default_server;
+ server_name vending.waw.hackerspace.pl;
+
+ location / {
+ proxy_pass http://127.0.0.1:5000;
+ proxy_set_header Host $host;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ }
+
+ listen 443 ssl default_server;
+
+ ssl_certificate /var/lib/dehydrated/certs/vending.waw.hackerspace.pl/fullchain.pem;
+ ssl_certificate_key /var/lib/dehydrated/certs/vending.waw.hackerspace.pl/privkey.pem;
+
+ if ($scheme = http) {
+ return 301 https://$server_name$request_uri;
+ }
+}