Spaces:
Paused
Paused
Create nginx.conf
Browse files- nginx.conf +29 -0
nginx.conf
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
events {}
|
| 2 |
+
|
| 3 |
+
http {
|
| 4 |
+
upstream backend {
|
| 5 |
+
server ptheus.cc.cd:443;
|
| 6 |
+
server cdn.ptheus.cc.cd:443;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
server {
|
| 10 |
+
listen 7860;
|
| 11 |
+
|
| 12 |
+
location / {
|
| 13 |
+
proxy_pass https://backend;
|
| 14 |
+
|
| 15 |
+
# penting untuk HTTPS upstream
|
| 16 |
+
proxy_ssl_server_name on;
|
| 17 |
+
|
| 18 |
+
# header standar proxy
|
| 19 |
+
proxy_set_header Host $host;
|
| 20 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 21 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 22 |
+
proxy_set_header X-Forwarded-Proto https;
|
| 23 |
+
|
| 24 |
+
# (opsional) timeout biar stabil
|
| 25 |
+
proxy_connect_timeout 10s;
|
| 26 |
+
proxy_read_timeout 60s;
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
}
|