mirror of https://github.com/1Panel-dev/1Panel
appstorecrontabdatabasedockerdocker-composedocker-containerdocker-imagedocker-uifilemanagerlamplnmppanel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.3 KiB
59 lines
1.3 KiB
package dto |
|
|
|
import ( |
|
"github.com/1Panel-dev/1Panel/backend/app/model" |
|
"github.com/1Panel-dev/1Panel/backend/utils/nginx/components" |
|
) |
|
|
|
type NginxFull struct { |
|
Install model.AppInstall |
|
Website model.Website |
|
ConfigDir string |
|
ConfigFile string |
|
SiteDir string |
|
Dir string |
|
RootConfig NginxConfig |
|
SiteConfig NginxConfig |
|
} |
|
|
|
type NginxConfig struct { |
|
FilePath string |
|
Config *components.Config |
|
OldContent string |
|
} |
|
|
|
type NginxParam struct { |
|
UpdateScope string |
|
Name string |
|
Params []string |
|
} |
|
|
|
type NginxAuth struct { |
|
Username string `json:"username"` |
|
Remark string `json:"remark"` |
|
} |
|
|
|
type NginxKey string |
|
|
|
const ( |
|
Index NginxKey = "index" |
|
LimitConn NginxKey = "limit-conn" |
|
SSL NginxKey = "ssl" |
|
CACHE NginxKey = "cache" |
|
HttpPer NginxKey = "http-per" |
|
ProxyCache NginxKey = "proxy-cache" |
|
) |
|
|
|
var ScopeKeyMap = map[NginxKey][]string{ |
|
Index: {"index"}, |
|
LimitConn: {"limit_conn", "limit_rate", "limit_conn_zone"}, |
|
SSL: {"ssl_certificate", "ssl_certificate_key"}, |
|
HttpPer: {"server_names_hash_bucket_size", "client_header_buffer_size", "client_max_body_size", "keepalive_timeout", "gzip", "gzip_min_length", "gzip_comp_level"}, |
|
} |
|
|
|
var StaticFileKeyMap = map[NginxKey]struct { |
|
}{ |
|
SSL: {}, |
|
CACHE: {}, |
|
ProxyCache: {}, |
|
}
|
|
|