This commit is contained in:
wyl
2023-01-16 22:39:49 +08:00
commit 4387e37749
2 changed files with 44 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
server {
server_name *.wylgyx.top;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:36000;
}
}
server {
server_name git.wylgyx.top;
if ($host = git.wylgyx.top) {
return 301 https://$host$request_uri;
} # managed by Certbot
}
server {
server_name maven.wylgyx.top;
if ($host = maven.wylgyx.top) {
return 301 https://$host$request_uri;
} # managed by Certbot
}
server {
server_name alist.wylgyx.top;
if ($host = alist.wylgyx.top) {
return 301 http://$host$request_uri;
} # managed by Certbot
}
server {
server_name vscode.wylgyx.top;
if ($host = vscode.wylgyx.top) {
return 301 https://$host$request_uri;
} # managed by Certbot
}
+7
View File
@@ -0,0 +1,7 @@
[common]
bind_port = 6000
vhost_https_port = 443
vhost_http_port = 36000
log_file = /var/log/frps/frps.log
log_max_days = 5
subdomain_host = wylgyx.top