Skip to content

Commit 421b729

Browse files
committed
chore: add nginx example
1 parent 758b271 commit 421b729

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

examples/pelit.conf

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
server {
2+
listen 443 ssl;
3+
http2 on;
4+
server_name example.com;
5+
6+
ssl_certificate /path/to/cert;
7+
ssl_certificate_key /path/to/key;
8+
9+
root /var/www/pelit;
10+
11+
location / {
12+
try_files $uri =404;
13+
}
14+
}
15+
16+
server {
17+
listen 443 ssl;
18+
http2 on;
19+
server_name example2.com;
20+
21+
ssl_certificate /path/to/cert;
22+
ssl_certificate_key /path/to/key;
23+
24+
location / {
25+
proxy_pass http://pelit:8000;
26+
proxy_set_header Host $host;
27+
proxy_set_header X-Real-IP $remote_addr;
28+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
29+
proxy_set_header X-Forwarded-Proto $scheme;
30+
31+
proxy_connect_timeout 60s;
32+
proxy_send_timeout 60s;
33+
proxy_read_timeout 60s;
34+
}
35+
}

0 commit comments

Comments
 (0)