Let's say you want to host domains first.com and second.com.
Create folders for their files:
| package cmd | |
| import ( | |
| "strings" | |
| "github.com/chzyer/readline" | |
| "github.com/spf13/cobra" | |
| ) | |
| var shellCmd = &cobra.Command{ |
| version: '2' | |
| services: | |
| traefik: | |
| restart: unless-stopped | |
| image: traefik | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock:ro |
| version: '2' | |
| services: | |
| traefik: | |
| image: traefik | |
| command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG --entryPoints="Name:https Address::443 TLS:/certs/server.crt,/certs/server.key;/certs_br/server.crt,/certs_br/server.key" --entryPoints="Name:http Address::80 Redirect.EntryPoint:https" | |
| ports: | |
| - "80:80" | |
| - "8080:8080" |
| { | |
| "version": "https://jsonfeed.org/version/1", | |
| "title": {{ .Site.Title | jsonify }}, | |
| "home_page_url": {{ .Permalink | jsonify }}, | |
| {{ with .OutputFormats.Get "json" -}} | |
| "feed_url": {{ .Permalink | jsonify }}, | |
| {{- end }} | |
| {{ if (.Site.Params.author) or (.Site.Params.author_url) -}} | |
| "author": { | |
| {{ if .Site.Params.author -}} |