Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended SSL settings #149

Closed
Qwiko opened this issue Nov 14, 2022 · 3 comments
Closed

Recommended SSL settings #149

Qwiko opened this issue Nov 14, 2022 · 3 comments
Labels

Comments

@Qwiko
Copy link

Qwiko commented Nov 14, 2022

What is the recommended way to enable SSL for netbox?

@lae
Copy link
Owner

lae commented Nov 14, 2022

The way that fits in with the rest of your environment, but off the top of my head a standard method would just to be to either use LetsEncrypt if facing publicly, or a company-signed/self-signed cert internally, and use a vhost in nginx that proxies to Netbox over wsgi.

@lae lae added the question label Nov 14, 2022
@Qwiko
Copy link
Author

Qwiko commented Nov 15, 2022

I managed this with nginx in front of uwsgi using the guide from netbox.
I was unable to pass the socket directly in nginx and used proxy_pass instead.

@Qwiko Qwiko closed this as completed Nov 15, 2022
@Qwiko
Copy link
Author

Qwiko commented Nov 15, 2022

For anyone trying this as well.
This is what worked for me.
Ansible vars:

netbox_protocol: uwsgi
netbox_socket: "/tmp/netbox.sock"

Change nginx user to netbox in nginx.conf

user netbox;
...

nginx netbox configuration

    location / {
        include         uwsgi_params;
        uwsgi_pass      unix:/tmp/netbox.sock;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants