Merge pull request #530 from CeleritasCelery/insecure-fix
Don't use HTTPS when INSECURE variable is set
This commit is contained in:
commit
d6be15df36
1 changed files with 7 additions and 3 deletions
|
@ -96,9 +96,13 @@ missing) and shouldn't be deleted.")
|
|||
package-user-dir (expand-file-name "elpa" doom-packages-dir)
|
||||
package-enable-at-startup nil
|
||||
package-archives
|
||||
'(("gnu" . "https://elpa.gnu.org/packages/")
|
||||
("melpa" . "https://melpa.org/packages/")
|
||||
("org" . "https://orgmode.org/elpa/"))
|
||||
(if (getenv "INSECURE")
|
||||
'(("gnu" . "http://elpa.gnu.org/packages/")
|
||||
("melpa" . "http://melpa.org/packages/")
|
||||
("org" . "http://orgmode.org/elpa/"))
|
||||
'(("gnu" . "https://elpa.gnu.org/packages/")
|
||||
("melpa" . "https://melpa.org/packages/")
|
||||
("org" . "https://orgmode.org/elpa/")))
|
||||
;; I omit Marmalade because its packages are manually submitted rather
|
||||
;; than pulled, so packages are often out of date with upstream.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue