Add HTTP->HTTPS redirect, SSL settings, and run uvicorn via Python module for compatibility.
22 lines
639 B
Plaintext
22 lines
639 B
Plaintext
<VirtualHost *:80>
|
|
ServerName tts.ncue.net
|
|
Redirect permanent / https://tts.ncue.net/
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName tts.ncue.net
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/letsencrypt/live/ncue.net/fullchain.pem
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/ncue.net/privkey.pem
|
|
# 선택: 체인 파일이 필요하면 아래 경로 사용
|
|
# SSLCertificateChainFile /etc/letsencrypt/live/ncue.net/chain.pem
|
|
|
|
ProxyRequests Off
|
|
ProxyPreserveHost On
|
|
|
|
# 전체 프록시 (FastAPI가 정적/템플릿 포함 제공)
|
|
ProxyPass / http://127.0.0.1:8019/
|
|
ProxyPassReverse / http://127.0.0.1:8019/
|
|
</VirtualHost>
|