add nginx config file
Seto Elkahfi committed
Dec 29, 2024 at 01:26 UTC
35920bc71f12dc5843cd275f1c9e0d078387a37b
1 file changed
+27
.smb/nginx-setoelkahfi.com
new
+27
@@ -0,0 +1,27 @@
1
+server {
2
+ listen 80;
3
+ listen 443 ssl;
4
+
5
+ server_name setoelkahfi.com;
6
+
7
+ ssl_certificate /etc/letsencrypt/live/setoelkahfi.com/fullchain.pem;
8
+ ssl_certificate_key /etc/letsencrypt/live/setoelkahfi.com/privkey.pem;
9
+
10
+ location / {
11
+ proxy_pass http://localhost:3003;
12
+ proxy_http_version 1.1;
13
+ proxy_set_header Upgrade $http_upgrade;
14
+ proxy_set_header Connection 'upgrade';
15
+ proxy_set_header Host $host;
16
+ proxy_cache_bypass $http_upgrade;
17
+ }
18
+}
19
+
20
+server {
21
+ listen 80;
22
+ listen 443 ssl;
23
+ ssl_certificate /etc/letsencrypt/live/setoelkahfi.com/fullchain.pem;
24
+ ssl_certificate_key /etc/letsencrypt/live/setoelkahfi.com/privkey.pem;
25
+ server_name www.setoelkahfi.com;
26
+ return 301 https://setoelkahfi.com$request_uri;
27
+}