找到 GitHub 页面的 url
Find the url of the GitHub page
我要接管 a website by Docusaurus V2,但我无法再联系到以前的开发人员。
我知道网站内容部署到 GitHub 页面。我想知道 我们的网站重定向到的真实 GitHub 页面 url,有人知道怎么知道吗?
我可以访问我们的服务器和域名记录(我没有看到 GitHub 页面的 url)。显然之前的开发者使用了 docker,这里是 docker-compose.yml
:
version: "3"
services:
docusaurus:
image: bitnami/nginx:1.16
restart: always
volumes:
- ./build:/app
- ./certs:/certs:ro
- ./my_server_block.conf:/opt/bitnami/nginx/conf/server_blocks/my_server_block.conf:ro
ports:
- "3001:3001"
- "3002:3002"
我在我们的服务器中找不到 nginx.conf
的路径。有谁知道它可能在哪里?
编辑 1: 这里是 my_server_block.conf
:
server {
listen 3002;
absolute_redirect off;
root /app;
location = / {
rewrite ^(.*)$ https://$http_host/docs/introduction redirect;
}
location = /docs {
rewrite ^(.*)$ https://$http_host/docs/introduction redirect;
}
location = /help {
rewrite ^(.*)$ https://$http_host/docs/introduction redirect;
}
location = /addinHelp {
rewrite ^(.*)$ https://$http_host/docs/introduction redirect;
}
location = /privacy {
rewrite ^(.*)$ https://$http_host/privacy.html redirect;
}
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 3001 ssl;
ssl_certificate /certs/server.crt;
ssl_certificate_key /certs/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://localhost:3002;
proxy_redirect off;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Ssl on;
}
}
根据文档https://github.com/bitnami/bitnami-docker-nginx
我认为my_server_block.conf
是你的配置文件。
您可以 docker exec
进入容器,或者您可以转到您 运行 使用 docker 撰写命令的目录并查找该文件。
很明显是从主机挂载到容器上的./my_server_block.conf:/opt/bitnami/nginx/conf/server_blocks/my_server_block.conf
我要接管 a website by Docusaurus V2,但我无法再联系到以前的开发人员。
我知道网站内容部署到 GitHub 页面。我想知道 我们的网站重定向到的真实 GitHub 页面 url,有人知道怎么知道吗?
我可以访问我们的服务器和域名记录(我没有看到 GitHub 页面的 url)。显然之前的开发者使用了 docker,这里是 docker-compose.yml
:
version: "3"
services:
docusaurus:
image: bitnami/nginx:1.16
restart: always
volumes:
- ./build:/app
- ./certs:/certs:ro
- ./my_server_block.conf:/opt/bitnami/nginx/conf/server_blocks/my_server_block.conf:ro
ports:
- "3001:3001"
- "3002:3002"
我在我们的服务器中找不到 nginx.conf
的路径。有谁知道它可能在哪里?
编辑 1: 这里是 my_server_block.conf
:
server {
listen 3002;
absolute_redirect off;
root /app;
location = / {
rewrite ^(.*)$ https://$http_host/docs/introduction redirect;
}
location = /docs {
rewrite ^(.*)$ https://$http_host/docs/introduction redirect;
}
location = /help {
rewrite ^(.*)$ https://$http_host/docs/introduction redirect;
}
location = /addinHelp {
rewrite ^(.*)$ https://$http_host/docs/introduction redirect;
}
location = /privacy {
rewrite ^(.*)$ https://$http_host/privacy.html redirect;
}
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 3001 ssl;
ssl_certificate /certs/server.crt;
ssl_certificate_key /certs/server.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://localhost:3002;
proxy_redirect off;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Ssl on;
}
}
根据文档https://github.com/bitnami/bitnami-docker-nginx
我认为my_server_block.conf
是你的配置文件。
您可以 docker exec
进入容器,或者您可以转到您 运行 使用 docker 撰写命令的目录并查找该文件。
很明显是从主机挂载到容器上的./my_server_block.conf:/opt/bitnami/nginx/conf/server_blocks/my_server_block.conf