Browse Source

Add example NGINX config

pull/44/head
Toromino 3 weeks ago
parent
commit
5f87576746
1 changed files with 21 additions and 0 deletions
  1. 21
    0
      contrib/kibou.nginx

+ 21
- 0
contrib/kibou.nginx View File

@@ -0,0 +1,21 @@
1
+server {
2
+        listen 80;
3
+        listen [::]:80;
4
+        server_name kibou.domain;
5
+        return 301 https://$server_name$request_uri;
6
+}
7
+
8
+server {
9
+        listen          443;
10
+        server_name     kibou.domain;
11
+
12
+        ssl on;
13
+        ssl_certificate /etc/letsencrypt/live/kibou.domain/fullchain.pem;
14
+        ssl_certificate_key /etc/letsencrypt/live/kibou.domain/privkey.pem;
15
+        ssl_trusted_certificate /etc/letsencrypt/live/kibou.domain/fullchain.pem;
16
+
17
+        location / {
18
+                proxy_pass http://localhost:8000;
19
+                proxy_set_header Host $host;
20
+        }        
21
+}

Loading…
Cancel
Save