New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nginx配置oss #31
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好,我在本地测试没有问题,部署到阿里云上出现504,我怀疑是nginx找不到media了,但是如何把media路径修改成oss呢,这是我现在的配置:
`# the upstream component nginx needs to connect to
upstream django {
server unix://opt/uwsgitest/NewBlog/blog.sock; # for a file socket
# server 127.0.0.1:8001; # for a web port socket (we'll use this first)
# server oss-cn-shanghai.aliyuncs.com;
}
configuration of the server
server {
# the port your site will be served on
listen 80;
# the domain name it will serve for
server_name pandacoder.top; # substitute your machine's IP address or FQDN
charset utf-8;
proxy_pass http://pandacoderblog.oss-cn-shanghai.aliyuncs.com;
}
`
The text was updated successfully, but these errors were encountered: