server { listen 443 ssl; server_name unifi.taglang.io; location / { proxy_set_header Host $host; proxy_pass http://localhost:8880; proxy_redirect off; } ssl_certificate /etc/letsencrypt/live/unifi.taglang.io/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/unifi.taglang.io/privkey.pem; } server { listen 443 ssl; server_name gitlab.taglang.io; location / { proxy_set_header Host $host; proxy_pass http://localhost:8881; proxy_redirect off; } ssl_certificate /etc/letsencrypt/live/gitlab.taglang.io/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/gitlab.taglang.io/privkey.pem; } server { listen 443 ssl; server_name mayan.taglang.io; location / { proxy_set_header Host $host; proxy_pass http://localhost:8882; proxy_redirect off; } ssl_certificate /etc/letsencrypt/live/mayan.taglang.io/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/mayan.taglang.io/privkey.pem; } server { listen 443 ssl; server_name calibre.taglang.io; location / { proxy_set_header Host $host; proxy_pass http://localhost:8883; proxy_redirect off; } ssl_certificate /etc/letsencrypt/live/calibre.taglang.io/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/calibre.taglang.io/privkey.pem; client_max_body_size 2G; } server { listen 443 ssl; server_name koken.taglang.io; location / { proxy_set_header Host $host; proxy_pass http://localhost:8884; proxy_redirect off; auth_basic "Restricted"; auth_basic_user_file /etc/nginx/user.conf.d/.htpasswd; } location /admin { proxy_set_header Host $host; proxy_pass http://localhost:8884; proxy_redirect off; proxy_set_header X-Forwarded-Proto https; } location ~* \.php$ { proxy_set_header Host $host; proxy_pass http://localhost:8884; proxy_redirect off; proxy_set_header X-Forwarded-Proto https; } ssl_certificate /etc/letsencrypt/live/koken.taglang.io/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/koken.taglang.io/privkey.pem; client_max_body_size 2G; } server { listen 443 ssl; server_name git.taglang.io; location / { proxy_set_header Host $host; proxy_pass http://localhost:8885; proxy_redirect off; } ssl_certificate /etc/letsencrypt/live/git.taglang.io/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/git.taglang.io/privkey.pem; client_max_body_size 2G; }