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

Configure addition reverse-proxy options with static-darkhttpd #63

Open
CrushedPixel opened this issue Jan 28, 2020 · 0 comments
Open

Comments

@CrushedPixel
Copy link

I'm using static-darkhttpd to serve a static frontend like this:

  nixcloud.webservices.static-darkhttpd.frontend = {
    enable = true;
    root = /etc/nixos/modules/frontend-static;

    proxyOptions = {
      inherit domain;

      port = frontend_port;
      path = "/";
      TLS = domain;
      https.mode = "on";
    };
  };

This works very well.
Now I want to add a custom option to the reverse-proxy entry for this frontend, namely something like try_files $url $url.html to allow users to access the pages served without the .html extension.

(How) is this possible?

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

No branches or pull requests

1 participant