RT
热议
2楼 suaxi 昨天18:01
我这边只反代了桶,控制台只能在内网访问,不对外暴露,按正常反代配置设置就行
3楼 laoxong 昨天18:12
我也是只反代了桶默认端口9000,控制台SSH隧道来访问
4楼 WZ-Software 昨天19:17
我这边只反代了桶,控制台只能在内网访问,不对外暴露,按正常反代配置设置就行 ...
怎么搞的,求大佬教一下
5楼 WZ-Software 昨天19:20
我也是只反代了桶默认端口9000,控制台SSH隧道来访问
大佬教教我
6楼 laoxong 昨天20:03
大佬教教我
upstream minoio {
server 127.0.0.1:9000;
}
proxy_cache_path /dev/shm/oss.moec.top levels=1:2 keys_zone=oss:1m inactive=30m max_size=2048m;
server {
listen 80;
listen [::]:80;
server_name oss.moec.top;
return 301 https://$host$request_uri;
}server {
listen 443 ssl http2;
server_name oss.moec.top ;
ssl_certificate /dsadsa/dsadas/crt.pem;
ssl_certificate_key/dsadas/dasdsad/key.key;
ssl_stapling on;
ssl_stapling_verify on;
ssl_session_timeout 1d;
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers "TLS-CHACHA20-POLY1305-SHA256:TLS-AES-256-GCM-SHA384:TLS-AES-128-GCM-SHA256:EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+ECDSA+AES128:EECDH+aRSA+AES128:RSA+AES128:EECDH+ECDSA+AES256:EECDH+aRSA+AES256:RSA+AES256:EECDH+ECDSA+3DES:EECDH+aRSA+3DES:RSA+3DES:!MD5";ssl_prefer_server_ciphers on;
# Change to your upload limit
client_max_body_size 80m;
location / {
proxy_set_header Host $http_host;
proxy_pass http://localhost:9000;
proxy_cache oss;
proxy_cache_key $uri$is_args$args;
proxy_cache_valid 200 304 1h;
proxy_cache_valid 301 24h;
proxy_cache_valid 500 502 503 504 0s;
proxy_cache_valid any 1s;
proxy_cache_min_uses 5;
expires 12h;
proxy_cache_lock on;
proxy_cache_background_update on;
add_header X-Cache-Status $upstream_cache_status;
}
reset_timedout_connection on;
proxy_ignore_client_abort on;
tcp_nopush on;
tcp_nodelay on;
sendfile on;
sendfile_max_chunk 1M;
aio threads;gzip on;
gzip_vary on;
gzip_types # text/html is always compressed by HttpGzipModule
text/css
application/javascript
font/truetype
font/opentype
application/vnd.ms-fontobject
image/svg+xml;
gzip_min_length 1000; # default is 20 bytes
gzip_buffers 16 8k;
gzip_comp_level 2; # default is 1}
我的Nginx配置
7楼 suaxi 昨天20:27
怎么搞的,求大佬教一下
location /abc/ {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:9000/bucketName/abc/;
}
跟楼上大佬的配置差不多,隐藏了桶的名称
8楼 WZ-Software 8分钟前
我的Nginx配置
放在nginx.conf还是放在站点config呀
9楼 laoxong 1分钟前
放在nginx.conf还是放在站点config呀
扔在 /etc/nignx/conf.d 就行
申明:本文内容由网友收集分享,仅供学习参考使用。如文中内容侵犯到您的利益,请在文章下方留言,本站会第一时间进行处理。