Skip to content

Instantly share code, notes, and snippets.

View jetjo's full-sized avatar
🏠
居家办公

John lone jetjo

🏠
居家办公
  • Haidian District, Beijing, China
View GitHub Profile
@jetjo
jetjo / docker-compose-traefik.yaml
Created March 23, 2025 22:20 — forked from prayagsingh/docker-compose-traefik.yaml
Treaefik with file provider and with letsencrypt and custom tls certs
# Providers :- discover the services that live on your infrastructure (their IP, health, ...)
# Entrypoints :- listen for incoming traffic (ports, ...)
# Routers :- analyse the requests (host, path, headers, SSL, ...). A router is in charge of connecting incoming requests to the services that can handle them.
# Services :- forward the request to your services (load balancing, ...). The Services are responsible for configuring how to reach the actual services that will eventually handle the incoming requests.
# Middlewares :- may update the request or make decisions based on the request (authentication, rate limiting, headers, ...)
version: "3.7"
networks:
@jetjo
jetjo / setproxy
Created October 10, 2022 17:12 — forked from beradrian/setproxy
Set proxy for npm and git
# set a proxy
set HTTP_PROXY=
set HTTPS_PROXY=%HTTP_PROXY%
npm config set proxy %HTTP_PROXY%
npm config set https.proxy %HTTPS_PROXY%
npm config set https-proxy %HTTPS_PROXY%
git config --global http.proxy %HTTP_PROXY%
git config --global https.proxy %HTTPS_PROXY%
# unset proxy
@jetjo
jetjo / GitConfigHttpProxy.md
Created October 10, 2022 12:05 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@jetjo
jetjo / History\-127d8b22\entries.json
Last active October 15, 2022 04:52 — forked from yougg/proxy.md
complete ways to set http/socks/ssh proxy environment variables
{"version":1,"resource":"file:///d%3A/project/sso-vue/vue-project/src/views/ssoLogin.vue","entries":[{"id":"HcBH.vue","source":"searchReplace.source","timestamp":1665697442395},{"id":"s6BJ.vue","source":"searchReplace.source","timestamp":1665697482027},{"id":"LMy2.vue","source":"searchReplace.source","timestamp":1665697638875},{"id":"TsQ5.vue","timestamp":1665698509652},{"id":"UWdw.vue","timestamp":1665698561222},{"id":"EaPK.vue","timestamp":1665698673931},{"id":"f1vV.vue","timestamp":1665698779977},{"id":"tY9T.vue","timestamp":1665698844190},{"id":"1p0B.vue","timestamp":1665698902403},{"id":"cbZK.vue","timestamp":1665699037082},{"id":"TCGl.vue","timestamp":1665699161576},{"id":"WfkU.vue","timestamp":1665699181447},{"id":"RzbN.vue","timestamp":1665699296694},{"id":"6uxU.vue","timestamp":1665699406109}]}