mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-24 13:38:17 +02:00
frontend: react+mui (#3004)
* mui v5 wip * wip * wip * wip * use compressor for all controlplane endpoints * wip * wip * add deps * fix authenticate URL * fix test * fix test * fix build * maybe fix build * fix integration test * remove image asset test * add yarn.lock
This commit is contained in:
parent
64d8748251
commit
2824faecbf
84 changed files with 13373 additions and 1455 deletions
|
@ -7,14 +7,12 @@ package proxy
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/pomerium/pomerium/config"
|
||||
"github.com/pomerium/pomerium/internal/frontend"
|
||||
"github.com/pomerium/pomerium/internal/httputil"
|
||||
"github.com/pomerium/pomerium/internal/log"
|
||||
"github.com/pomerium/pomerium/internal/telemetry/metrics"
|
||||
|
@ -49,7 +47,6 @@ func ValidateOptions(o *config.Options) error {
|
|||
|
||||
// Proxy stores all the information associated with proxying a request.
|
||||
type Proxy struct {
|
||||
templates *template.Template
|
||||
state *atomicProxyState
|
||||
currentOptions *config.AtomicOptions
|
||||
currentRouter atomic.Value
|
||||
|
@ -64,7 +61,6 @@ func New(cfg *config.Config) (*Proxy, error) {
|
|||
}
|
||||
|
||||
p := &Proxy{
|
||||
templates: template.Must(frontend.NewTemplates()),
|
||||
state: newAtomicProxyState(state),
|
||||
currentOptions: config.NewAtomicOptions(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue