Comments (1)
# 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;
# max upload size
client_max_body_size 75M; # adjust to taste
# Django media
location /Blog_media {
proxy_pass http://pandacoderblog.oss-cn-shanghai.aliyuncs.com;
#alias /opt/uwsgitest/media_root; # your Django project's media files - amend as required
}
location /static {
alias /opt/uwsgitest/NewBlog/static_root; # your Django project's static files - amend as required
}
# Finally, send all non-media requests to the Django server.
location / {
uwsgi_pass django;
# proxy_pass http://pandacoderblog.oss-cn-shanghai.aliyuncs.com;
include /opt/uwsgitest/NewBlog/uwsgi_params; # the uwsgi_params file you installed
}
}
from django-aliyun-oss2-storage.
Related Issues (20)
- 你好关于DEFAULT_FILE_STORAGE和STATICFILES_STORAGE配置的疑问 HOT 4
- 发现两个bug
- 请问可否配置object meta信息 HOT 1
- ImportError: No module named aliyun-oss2-storage.backends
- AliyunFile的__init__方法self._name设置会引发NoSuchKey错误,找不到OSS上的对象 HOT 3
- AliyunFile中read方法获取图片后没有正确赋值 HOT 1
- 请问是否支持 自定义域名的 cname ?
- 可不可以更新下pypi上面的包 HOT 2
- 你好,能支持下HTTPS的情况吗? HOT 2
- ‘/’被编码成‘%2F’ HOT 7
- wagtail 结合aliun-oss2 HOT 2
- windows 下安装出错。 HOT 1
- AccessDeny Error
- 这个包是不是不能处理最新的sts访问策略?
- 请解决Windows安装错误问题
- 类属性错误
- django4.0后用不了
- 是不是不支持python3? HOT 1
- Storage.url函数出来的结果是错的 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-aliyun-oss2-storage.