Skip to content

How to run app in nginx as reverse proxy with prefix #583

@dracorp

Description

@dracorp

BorgWarehouse version :3.1.1
Installation type :

  • Docker
  • Baremetal (RHEL9)
  • Other environment :

Describe your problem here.

I have configured borgwarehouse with nginx as reverse proxy and it works. But how to configure app to run in prefix mode? For example: https://domain.tld/backup
I tried this configuration:

import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
  basePath: '/backup',
  assetPrefix: '/backup/',
  images: {
    unoptimized: true,
  },
  reactStrictMode: false,
  async redirects() {
    return [
      {
        source: '/setup-wizard',
        destination: '/setup-wizard/1',
        permanent: true,
      },
      {
        source: '/manage-repo',
        destination: '/',
        permanent: true,
      },
    ];
  },
};

export default nextConfig;

but it works partially.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions