47 lines
875 B
Nginx Configuration File
47 lines
875 B
Nginx Configuration File
events {
|
|
}
|
|
|
|
http {
|
|
server {
|
|
listen 443 ssl;
|
|
server_name registry.flowy.live;
|
|
|
|
client_max_body_size 500M;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/flowy.live/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/flowy.live/privkey.pem;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:5000;
|
|
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 https;
|
|
}
|
|
}
|
|
|
|
|
|
server {
|
|
listen 80;
|
|
server_name api.flowy.live;
|
|
|
|
location / {
|
|
proxy_pass http://192.168.50.103:8080;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name api.flowy.live;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/flowy.live/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/flowy.live/privkey.pem;
|
|
|
|
location / {
|
|
proxy_pass http://192.168.50.103:8080;
|
|
}
|
|
}
|
|
|
|
}
|
|
|