Redirect all HTTP traffic to HTTPS with nginx plugin

Started by tkn-teamf, July 05, 2023, 08:40:20 PM

Previous topic - Next topic
My current nginx config (on some odroid) is:

server {
    listen 80;
    return 301 https://$host$request_uri;
}


The purpose is to redirect any http traffic to https.

How can I do this with OPNsense?