RAdmin
Administrador
Aplicaciones
Sistema
Procesos
Archivos
Bases de Datos
Dominios
SSL
Deploy
Configuraciones
✏️ Editar: app_template
👁️ Ver
← Volver
upstream app_@slug { server 127.0.0.1:@port fail_timeout=0; } server { listen 80; server_name @dominio; return 301 https://@host$request_uri; } server { listen 443 ssl; ssl_certificate /etc/letsencrypt/live/gvn.mx/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/gvn.mx/privkey.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; client_max_body_size 22M; keepalive_timeout 120; server_name @dominio; root @path_apps/@dominio/public; index index.htm index.html; location / { proxy_pass http://app_@slug; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Ssl on; # Optional proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Host $host; try_files $uri/index.html $uri.html $uri @app; proxy_ssl_verify on; proxy_ssl_verify_depth 2; proxy_ssl_session_reuse on; } location ~ \.php$ { include snippets/fastcgi-php.conf; root @path_apps/@dominio/php; fastcgi_pass unix:/run/php/php5.6-fpm.sock; } location ^~ /vucket/ { root /home/ubuntu/; } location ~* ^.+\.(jpeg|png|jpg|gif|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|mp3|flv|mpeg|avi)$ { try_files $uri @app; } location ^~ /elFinder{ location ~* \.php$ { root @path_apps/@dominio/php; index index.htm index.html; include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php5.6-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } root @path_apps/@dominio/php/; } location ^~ /libs{ root @path_apps/@dominio/public/; try_files $uri/index.html $uri.html $uri @app; } location ^~ /vjs{ root @path_apps/@dominio/public/; try_files $uri/index.html $uri.html $uri @app; } location @app { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_pass http://app_@slug; # para lo de HTTP Origin header didn't match request.base_url https nginx # esta linea marcaba error #proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_ssl_verify on; proxy_ssl_verify_depth 2; proxy_ssl_session_reuse on; } }
Cancelar
Usa Ctrl+S para guardar rápidamente