|
@@ -177,6 +177,41 @@ eliminar 3x-ui de docker
|
|
|
|
|
|
</details>
|
|
|
|
|
|
+## Configuración de Nginx
|
|
|
+<details>
|
|
|
+ <summary>Haga clic aquí para configurar el proxy inverso</summary>
|
|
|
+
|
|
|
+#### Proxy inverso Nginx
|
|
|
+```nginx
|
|
|
+location / {
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
+ proxy_set_header Host $http_host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header Range $http_range;
|
|
|
+ proxy_set_header If-Range $http_if_range;
|
|
|
+ proxy_redirect off;
|
|
|
+ proxy_pass http://127.0.0.1:2053;
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
+#### Nginx sub-path
|
|
|
+- EAsegúrese de que la "Ruta Raíz de la URL del Panel" en la configuración del panel `/sub` es la misma.
|
|
|
+- El `url` en la configuración del panel debe terminar con `/`.
|
|
|
+
|
|
|
+```nginx
|
|
|
+location /sub {
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
+ proxy_set_header Host $http_host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header Range $http_range;
|
|
|
+ proxy_set_header If-Range $http_if_range;
|
|
|
+ proxy_redirect off;
|
|
|
+ proxy_pass http://127.0.0.1:2053;
|
|
|
+}
|
|
|
+```
|
|
|
+</details>
|
|
|
|
|
|
## SO Recomendados
|
|
|
|