This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Caddy HTTP/2 web server | |
Documentation=https://caddyserver.com/docs | |
After=network-online.target | |
Wants=network-online.target systemd-networkd-wait-online.service | |
[Service] | |
Restart=on-failure | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
import ( | |
"errors" | |
"fmt" | |
"bitbucket.org/emagine/vdrill-cp/config" | |
"gopkg.in/ldap.v2" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#请替换成你的网址 | |
https://doc.example.com { | |
#将下面的路径替换成你的MinDoc路径 | |
root /go/src/github.com/lifei6671/godoc/ | |
proxy / localhost:8181 { | |
header_upstream Host {host} | |
header_upstream X-Real-IP {remote} | |
header_upstream X-Forwarded-For {remote} | |
header_upstream X-Forwarded-Proto {scheme} | |
except /static /uploads /cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vcl 4.0; | |
import http; | |
import directors; | |
# We define the origin servers | |
# assumption they listen on port 80, please change it if not true | |
backend origin_a { | |
.host = "103.234.96.112"; | |
.port = "80"; | |
} |
OlderNewer