GithubHelp home page GithubHelp logo

samuel-emrys-blogs / nginx-reverse-proxy Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 121 KB

How to set up an nginx reverse proxy with SSL termination in FreeNAS

certificate freenas nginx proxy-server ssl-termination

nginx-reverse-proxy's People

Contributors

samuel-emrys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nginx-reverse-proxy's Issues

Add a redirection for "example.com"

Hi,

First, thanks for this very useful guide !

I followed it and all works great but I would like to be able too to use "example.com" in addition of "subdomain1.example.com", "subdomain2.example.com",...

I tried to create a vdomain conf file named "example.com.conf"as follow :

`
server {
listen 443 ssl http2 ;

    server_name example.com;
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    include snippets/example.com.cert.conf;
    include snippets/ssl-params.conf;

    location / {
            include snippets/proxy-params.conf;
            proxy_pass http://192.168.0.30;
    }

}
`

I also tried to play with the "default-server" parameter but without success. In all cases, it redirect me on the first server in the vdomains folder (by name), even if i change the name of "example.com" conf file to be the first.
Also, I didn't forget to reload the nginx service after modifications.

Any idea to resolve this ? I think it's not so difficult but I'm yet quite a newbie in this kind of stuff ^^

Thanks again for this well explained guide !

PS : of course, i change my real domain name by example.com for this message

Add DDNS Instructions

Currently these instructions are in the Nextcloud guide. They probably have more semantic meaning within the reverse proxy guide, since it is the entry point for all services. The nextcloud jail shouldn't care about what it's IP is.

Add timeout parameters

Add the following parameters to prevent timeout's with large update files (i.e. when downloading new nextcloud updates)

proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.