Update nginx.conf
Browse files- nginx.conf +2 -0
nginx.conf
CHANGED
|
@@ -82,6 +82,8 @@ http {
|
|
| 82 |
}
|
| 83 |
|
| 84 |
location /codeserver/ {
|
|
|
|
|
|
|
| 85 |
proxy_pass http://127.0.0.1:5050/;
|
| 86 |
proxy_http_version 1.1;
|
| 87 |
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
| 82 |
}
|
| 83 |
|
| 84 |
location /codeserver/ {
|
| 85 |
+
auth_basic "Restricted Content";
|
| 86 |
+
auth_basic_user_file /home/user/app/ngpasswd;
|
| 87 |
proxy_pass http://127.0.0.1:5050/;
|
| 88 |
proxy_http_version 1.1;
|
| 89 |
proxy_set_header Upgrade $http_upgrade;
|