first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name sourcehub.nexpa-ai.com;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name sourcehub.nexpa-ai.com;
|
||||
|
||||
# 운영 서버의 실제 인증서 경로로 변경
|
||||
ssl_certificate /etc/letsencrypt/live/sourcehub.nexpa-ai.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/sourcehub.nexpa-ai.com/privkey.pem;
|
||||
|
||||
client_max_body_size 500m;
|
||||
|
||||
location / {
|
||||
# 3.8 listens on 18000 so it can run beside the current 8000 process.
|
||||
proxy_pass http://127.0.0.1:18000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_read_timeout 300s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user