從 GitLab 11.6.3 升級到 13.7.4
memo 一下, 免得升級 production 的時候GG
memo 一下, 免得升級 production 的時候GG
gitlab 理論上只能有一個對外網址,在 /etc/gitlab/gitlab.rb 內 (相關設定請參考 https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab ) 而做完修改之後執行 gitlab-ctl reconfiguration 則會產生 nginx 的 config file, 放在 /var/opt/gitlab/nginx/conf/gitlab-http.conf 所以如果需要同時 expose http 和 https 的話,只要在 gitlab-http.conf 裏頭修改就可以,例如這樣 server { listen *:80; listen *:443 ssl; ssl_certificate /var/www/ssl/xxx.chained.crt; ssl_certificate_key /var/www/ssl/xxx.key; ssl_protocols TLSv1.2; ## 以下省略 } 修改之後記得重新啟動 gitlab nginx ($ gitlab-ctl restart nginx) 就可以了
Source from colleague, who found https://sunset1995.github.io/HorizonNet/ for 360 image horizontal correction.
最近遇到的問題,只能說中國網路神奇事情多多
許多用 php 開發的軟體(比方說 wordpress)通常會用 mail() 來呼叫系統預設的 mail service 寄信,但 ubuntu 預設是沒有安裝,所以得自己來。
雖然最後算算價格跟考慮使用情境應該不會採用這樣的 solution,但還是來記錄一下。
不確定在自行安裝的機器上面會不會這樣,但至少在 GCP (google cloud platform)上頭的 windows server機器會這樣,所以只好改一下設定。
在大部分情況下安裝預設版本都可以正常無痛完成,但有時候就是會遇到不一樣的情況。
其實是因為這幾天phalcon 4 正式 release,然後自己不小心讓系統全部更新,然後就爆炸了,所以只好來降版本。
主要透過 sshpass 套件去做類似密碼輸入的動作。