mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
90 lines
2.8 KiB
Plaintext
90 lines
2.8 KiB
Plaintext
# valet stub: secure.proxy.valet.conf
|
|
|
|
server {
|
|
listen 127.0.0.1:80;
|
|
server_name some-other-proxy.com.test www.some-other-proxy.com.test *.some-other-proxy.com.test;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 127.0.0.1:443 ssl http2;
|
|
server_name some-other-proxy.com.test www.some-other-proxy.com.test *.some-other-proxy.com.test;
|
|
root /;
|
|
charset utf-8;
|
|
client_max_body_size 128M;
|
|
http2_push_preload on;
|
|
|
|
location /41c270e4-5535-4daa-b23e-c269744c2f45/ {
|
|
internal;
|
|
alias /;
|
|
try_files $uri $uri/;
|
|
}
|
|
|
|
ssl_certificate "/home/nobody/.config/valet/Certificates/some-other-proxy.com.test.crt";
|
|
ssl_certificate_key "/home/nobody/.config/valet/Certificates/some-other-proxy.com.test.key";
|
|
|
|
access_log off;
|
|
error_log "/home/nobody/.config/valet/Log/some-other-proxy.com.test-error.log";
|
|
|
|
error_page 404 "/home/nobody/.composer/vendor/laravel/valet/server.php";
|
|
|
|
location / {
|
|
proxy_pass https://127.0.0.1:8443;
|
|
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_set_header X-Client-Verify SUCCESS;
|
|
proxy_set_header X-Client-DN $ssl_client_s_dn;
|
|
proxy_set_header X-SSL-Subject $ssl_client_s_dn;
|
|
proxy_set_header X-SSL-Issuer $ssl_client_i_dn;
|
|
proxy_set_header X-NginX-Proxy true;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_http_version 1.1;
|
|
proxy_read_timeout 1800;
|
|
proxy_connect_timeout 1800;
|
|
chunked_transfer_encoding on;
|
|
proxy_redirect off;
|
|
proxy_buffering off;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 127.0.0.1:60;
|
|
server_name some-other-proxy.com.test www.some-other-proxy.com.test *.some-other-proxy.com.test;
|
|
root /;
|
|
charset utf-8;
|
|
client_max_body_size 128M;
|
|
|
|
add_header X-Robots-Tag 'noindex, nofollow, nosnippet, noarchive';
|
|
|
|
location /41c270e4-5535-4daa-b23e-c269744c2f45/ {
|
|
internal;
|
|
alias /;
|
|
try_files $uri $uri/;
|
|
}
|
|
|
|
access_log off;
|
|
error_log "/home/nobody/.config/valet/Log/some-other-proxy.com.test-error.log";
|
|
|
|
error_page 404 "/home/nobody/.composer/vendor/laravel/valet/server.php";
|
|
|
|
location / {
|
|
proxy_pass https://127.0.0.1:8443;
|
|
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;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|
|
|