$๋ก ์์ํ๋ ์ค์, ํ์ค ํ์ค ๋ณต์ฌํด์ ํฐ๋ฏธ๋์์ ์คํํด์ฃผ์ ์ผํฉ๋๋ค.- ํฐ๋ฏธ๋์ ์ฌ์์ ํ์ฌ์ผ ํ ์๋ ์์ต๋๋ค.
- ์ฌ์์ ํ, ํ์ฌ ์์ ํ๋ ํด๋๋ก ๋ค์ ์ด๋ํด์ฃผ์ ์ผํฉ๋๋ค.
| # [P4: nice to have] caddy + consul-template + docker-compose |
| from flask import Flask, redirect, url_for, session, request, jsonify | |
| from flask_oauthlib.client import OAuth | |
| PLACEHOLDER = None | |
| app = Flask(__name__) | |
| app.debug = True | |
| app.secret_key = 'development' | |
| app.config['SERVER_NAME'] = PLACEHOLDER | |
| app.config['PREFERRED_URL_SCHEME'] = 'https' |
- ๋ก๊ทธ์ธ ํ ๋๋ง๋ค ์ธ์ฆ์ ์ค๋ฅ๊ฐ ๋ณด์ด๋๊ฒ ๊ท์ฐฎ์ผ๋๊น ๋๋ฉ์ธ์ ์ฃผ๊ณ ์ธ์ฆ์๋ฅผ ์ฃผ์.
- ๊ทธ๋์ ์ ์ ํ ๋๋ฉ์ธ์ ์ฃผ๊ณ hostname๋ ์์ ํ์ต๋๋ค.
- ๋ค๋ฅธ Linux๋จธ์ ์์ https://github.com/diafygi/acme-tiny ์ ๋ฐ๋ผ์
account.key์domain.key&domain.csr์ ๋ฐ๊ธํ๊ณ - host challenge files์ ์๋นํ๊ธฐ ์ํด esxi์ ssh์ ์์ ํฉ๋๋ค.
- ESXi 6.0u2์์๋
/etc/vmware/rhttpproxy/endpoints.conf๊ฐ http proxy๋ฅผ ์ ์ํด์ค๋๋ค. - ์ด ์ค์ ์ ์ ํ ๋ถ๋ถ์
/.well-known/acme-challenge๋ฅผ ์ ์ํด์ฃผ๊ณ ,
/.well-known/acme-challenge local 8000 redirect allow
| #!/bin/sh | |
| # the script will execute with following environmental variables defined: | |
| # URL => my-http://myhost.domain.com:8080/mysite/a.html?search=blah#myanchor | |
| # URL_SCHEME => my-http | |
| # URL_HOST => myhost.domain.com | |
| # URL_PORT => 8080 | |
| # URL_QUERY => ?search=blah | |
| # URL_PATH => /mysite/a.html | |
| # URL_FRAGMENT => #myanchor | |
| # URL_VALUE => everything that comes after the 'scheme:' |
Deep Configs .osx
Warn! from here, weird thingy happened :)
Disable the sound effects on boot
Disable transparency in the menu bar and elsewhere on Yosemite
Set highlight color to green
| call plug#begin('~/.vim/plugged') | |
| Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
| let g:loaded_netrw = 1 | |
| let g:loaded_netrwPlugin = 1 | |
| let g:NERDTreeChDirMode = 2 | |
| let g:NERDTreeMinimalUI = 1 | |
| let g:NERDTreeShowHidden = 1 | |
| let g:NERDTreeIgnore=['\.git$', '.DS_Store'] | |
| Plug 'Xuyuanp/nerdtree-git-plugin' |
๋ด๊ฐ ์ ๊ธฐ๊ตฌ๋ ํ๋ ์ฌ์ดํธ ์ค์ ์ฌ๋ฐ๋ ๊ณณ์ด ํ๋ ์๋ค.
usesthis.com ๋ผ๊ณ , ์ ๋ช ํ ์ฌ๋๋ค์ ์์ ํ๊ฒฝ์ ์๊ฐํ๋ ๋ธ๋ก๊ทธ์ธ๋ฐ, 2009๋ ๋์ Alex Payne๋ก ์คํํธ๋ฅผ ๋์ด์, Gabe Newell, Paul Graham์ ์ง์์ฌ๊ฒฉ์ผ๋ก ์์๋, ๊ทธ์ผ๋ง๋ก ๋ง๋์๋๋ ์ฌ์ดํธ๋ก์, ๋ณด๋ค์ํผ X์ฉ๋ ๋ถ๋ค์ TechStack์ ์ฟ๋ณผ ์ ์๋ค.
์ง๊ธ๊น์ง 700๋ช ์ ์ธํฐ๋ทฐ๊ฐ ์ฌ๋ผ๊ฐ์๊ณ , ๋งค์ฃผ ํ์์ผ ๋ชฉ์์ผ์ ์ ๊ธ์ด ์ฌ๋ผ์ค๋๊น ๋ณผ๋งํ ๊ฑฐ๋ค.
์ฐ์ ๋ด๊ฐ ์ข์ํ๋ ๋ช๋ถ์ ๋ ์ถ๋ ค๋ณด์๋ฉด
| version: '2' | |
| services: | |
| consul: | |
| image: consul:latest | |
| network_mode: "host" | |
| environment: | |
| - 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}' | |
| command: | |
| - 'agent' | |
| - '-server' |