"Fossies" - the Fresh Open Source Software Archive

Member "buku-4.3/docker-compose/data/nginx/nginx.conf" (31 Jan 2020, 620 Bytes) of package /linux/privat/buku-4.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic config files source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 server {
    2   listen 80;
    3   server_name yoursitename.com;
    4   server_tokens off;
    5 
    6   location /.well-known/acme-challenge/ {
    7     root /var/www/certbot;
    8   }
    9 
   10   location / {
   11     #auth_basic           "Administrator's Area";
   12     #auth_basic_user_file /basic_auth/.htpasswd;
   13     proxy_pass  http://bukuserver:5001;
   14     proxy_set_header  Host               $http_host;
   15     proxy_set_header  X-Real-IP          $remote_addr;
   16     proxy_set_header  X-Forwarded-For    $proxy_add_x_forwarded_for;
   17     proxy_set_header  X-Remote-Port      $remote_port;
   18     proxy_set_header  X-Forwarded-Proto  $scheme;
   19     proxy_redirect    off;
   20   }
   21 }
   22