/server.conf Secret
Created
November 29, 2023 03:17
Canopyのリバース・プロキシとなるNginxの設定ファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl; | |
ssl_certificate /etc/letsencrypt/live/<ホスト名>/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/<ホスト名>/privkey.pem; | |
server_name <ホスト名>; | |
root /usr/share/nginx/html; | |
index index.html; | |
location / { | |
proxy_pass http://127.0.0.1:8000/; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_send_timeout 10; | |
proxy_read_timeout 60; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment