feat: refine navigation and account access flow
This commit is contained in:
+24
-10
@@ -1,6 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name recipe.example.com;
|
||||
listen [::]:80;
|
||||
|
||||
server_name recipeatlas.horoli.kr;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot;
|
||||
@@ -12,25 +14,37 @@ server {
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name recipe.example.com;
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
# 실제 인증서 경로로 교체한다. Let's Encrypt/Caddy를 사용해도 된다.
|
||||
ssl_certificate /etc/letsencrypt/live/recipe.example.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/recipe.example.com/privkey.pem;
|
||||
server_name recipeatlas.horoli.kr;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/horoli.kr/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/horoli.kr/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
add_header X-Content-Type-Options nosniff always;
|
||||
add_header Referrer-Policy strict-origin-when-cross-origin always;
|
||||
client_max_body_size 2m;
|
||||
|
||||
client_max_body_size 10m;
|
||||
|
||||
access_log /var/log/nginx/recipeatlas.horoli.kr.access.log;
|
||||
error_log /var/log/nginx/recipeatlas.horoli.kr.error.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_pass http://192.168.0.250:1771;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 120s;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
|
||||
proxy_redirect off;
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_send_timeout 360s;
|
||||
proxy_read_timeout 360s;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user