mirror of
https://gitlab.silvrtree.co.uk/martind2000/nginx-profiles.git
synced 2025-01-10 21:15:08 +00:00
28 lines
572 B
Plaintext
28 lines
572 B
Plaintext
server {
|
|
listen 80;
|
|
server_name .wiki.silvrtree.co.uk;
|
|
|
|
client_body_in_file_only clean;
|
|
client_body_buffer_size 32K;
|
|
|
|
client_max_body_size 10M;
|
|
|
|
sendfile on;
|
|
send_timeout 300;
|
|
|
|
|
|
#Configures the publicly served root directory
|
|
#Configures the index file to be served
|
|
|
|
#These lines create a bypass for certain pathnames
|
|
#www.example.com/test.js is now routed to port 3000
|
|
#instead of port 80
|
|
location / {
|
|
proxy_pass http://localhost:3000;
|
|
proxy_set_header Host $host;
|
|
auth_basic "Restricted";
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
|
|
|
}
|
|
}
|