Files
nexus/wiki/entities/Nginx.md
2026-04-14 16:02:50 +08:00

680 B
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
Nginx entity
web-server
reverse-proxy
tiktok-pm-python-django-project.md
2026-04-14

Definition

Nginx是一个高性能的HTTP服务器和反向代理。

Role in TikTok PM Project

  • 作为反向代理将请求转发给Gunicorn
  • 提供静态文件服务(/static/和/media/
  • 监听80端口

Configuration

upstream web {
    server web:8000;
}

server {
    listen 80;
    location /static/ {
        alias /app/staticfiles/;
    }
    location / {
        proxy_pass http://web;
    }
}

Connections