Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # whoami.local
- upstream whoami.local {
- ## Can be connected with "nginx-proxy_default" network
- # nginx-proxy_whoami_1
- server 172.18.0.4:8000;
- }
- server {
- server_name whoami.local;
- listen 80 ;
- access_log /var/log/nginx/access.log vhost;
- location / {
- proxy_pass http://whoami.local;
- }
- }
- server {
- server_name whoami.local;
- listen 443 ssl http2 ;
- access_log /var/log/nginx/access.log vhost;
- return 500;
- ssl_certificate /etc/nginx/certs/default.crt;
- ssl_certificate_key /etc/nginx/certs/default.key;
- }
Advertisement