You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/integration/nginx.md
+77-1Lines changed: 77 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,12 +121,88 @@ server {
121
121
122
122
If you need to add multiple RustFS servers in a distributed environment, please adjust DNS resolution or local Hosts addresses in advance, and modify and add servers.
123
123
124
-
```nginx
124
+
```
125
125
upstream rustfs {
126
126
least_conn;
127
127
server 10.0.0.1:9000;
128
128
server 10.0.0.2:9000;
129
129
server 10.0.0.3:9000;
130
130
server 10.0.0.4:9000;
131
131
}
132
+
133
+
134
+
upstream rustfs-console {
135
+
least_conn;
136
+
server 10.0.0.1:9001;
137
+
server 10.0.0.2:9001;
138
+
server 10.0.0.3:9001;
139
+
server 10.0.0.4:9001;
140
+
}
132
141
```
142
+
143
+
144
+
## 4. Dedicated DNS Mode
145
+
Create or configure a dedicated DNS name for the RustFS service.
146
+
147
+
Proxy requests for the RustFS server's S3 API to the /api/ path of this domain. Proxy requests for the RustFS Console Web GUI to the root path (/).
148
+
For example, given the hostname www.rustfs.dev:
149
+
Endpoint: `www.rustfs.dev/api/`
150
+
Console: `www.rustfs.dev`
151
+
152
+
153
+
~~~
154
+
server {
155
+
listen 443;
156
+
listen [::]:443;
157
+
http2 on;
158
+
server_name www.rustfs.dev;
159
+
160
+
# Allow special characters in headers
161
+
ignore_invalid_headers off;
162
+
# Allow any size file to be uploaded.
163
+
# Set to a value such as 1000m; to restrict file size to a specific value
0 commit comments