donnykurnia

nginx-proxy config result sample

Dec 30th, 2020
1,217
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # whoami.local
  2. upstream whoami.local {
  3.                                 ## Can be connected with "nginx-proxy_default" network
  4.                         # nginx-proxy_whoami_1
  5.                         server 172.18.0.4:8000;
  6. }
  7. server {
  8.         server_name whoami.local;
  9.         listen 80 ;
  10.         access_log /var/log/nginx/access.log vhost;
  11.         location / {
  12.                 proxy_pass http://whoami.local;
  13.         }
  14. }
  15. server {
  16.         server_name whoami.local;
  17.         listen 443 ssl http2 ;
  18.         access_log /var/log/nginx/access.log vhost;
  19.         return 500;
  20.         ssl_certificate /etc/nginx/certs/default.crt;
  21.         ssl_certificate_key /etc/nginx/certs/default.key;
  22. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×