Posted onIntutorialViews: Word count in article: 1.3kReading time ≈1 mins.
You will learn how to deploy a self-hold image sharing website in this post. Due to this time I am using a new VPS(my newly brought VPS with a huge storage–2TB at first and 3GB daily increase), the nginx config setting path will be different from the previous post.
server { listen443sslhttp2; listen [::]:443sslhttp2; ssl_certificate/etc/letsencrypt/live/your_domain.com/fullchain.pem; ssl_certificate_key/etc/letsencrypt/your_domain.com/privkey.pem; server_nameyour_domain.com; location/ { proxy_passhttp://127.0.0.1:8089; client_max_body_size1024m;# This is the most important for your large image file upload. proxy_set_headerHost$host:$server_port; proxy_set_headerX-Real-IP$remote_addr; proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for; proxy_set_headerREMOTE-HOST$remote_addr; proxy_set_headerX-Forwarded-Protohttps; add_headerX-Cache$upstream_cache_status; } }
1
service nginx restart
Then you can just go to the website with your domain and do the initiation following by the instruction. Done.