diff --git a/src/freedombone-app-turtl b/src/freedombone-app-turtl index 415d68ce..2017377d 100755 --- a/src/freedombone-app-turtl +++ b/src/freedombone-app-turtl @@ -635,20 +635,20 @@ __ENDCONFIG__ fi # config - echo '(defvar *enabled-cors-resources* "resource://turtl-at-lyonbros-dot-com"' > $TURTL_BASE_DIR/api/config/config.footer - echo ' "When set, will enable CORS for resource:// origins if they match the given' >> $TURTL_BASE_DIR/api/config/config.footer - echo ' string. Entries should be comma separated (this string is passed verbatim in' >> $TURTL_BASE_DIR/api/config/config.footer - echo ' the Access-Control-Allow-Origin header).")' >> $TURTL_BASE_DIR/api/config/config.footer - echo '(defparameter *public-actions*' >> $TURTL_BASE_DIR/api/config/config.footer - echo " \`((:post . ,(concatenate 'string *api-path* \"/users\"))" >> $TURTL_BASE_DIR/api/config/config.footer - echo " (:post . ,(concatenate 'string *api-path* \"/log/error\"))" >> $TURTL_BASE_DIR/api/config/config.footer - echo ' (:post . "/cla/sign")' >> $TURTL_BASE_DIR/api/config/config.footer - echo ' (:get . "/ping")' >> $TURTL_BASE_DIR/api/config/config.footer - echo ' (:get . "/admin")' >> $TURTL_BASE_DIR/api/config/config.footer - echo " (:get . ,(cl-ppcre:create-scanner (concatenate 'string *api-path* \"/invites/codes/([0-9a-f-]+)\"))))" >> $TURTL_BASE_DIR/api/config/config.footer - echo " \"A list of public resources/actions that do not require authentication.\")" >> $TURTL_BASE_DIR/api/config/config.footer - echo "(defvar *analytics* '(:enabled t" >> $TURTL_BASE_DIR/api/config/config.footer - echo ' :db "analytics"))' >> $TURTL_BASE_DIR/api/config/config.footer + { echo '(defvar *enabled-cors-resources* "resource://turtl-at-lyonbros-dot-com"'; + echo ' "When set, will enable CORS for resource:// origins if they match the given'; + echo ' string. Entries should be comma separated (this string is passed verbatim in'; + echo ' the Access-Control-Allow-Origin header).")'; + echo '(defparameter *public-actions*'; + echo " \`((:post . ,(concatenate 'string *api-path* \"/users\"))"; + echo " (:post . ,(concatenate 'string *api-path* \"/log/error\"))"; + echo ' (:post . "/cla/sign")'; + echo ' (:get . "/ping")'; + echo ' (:get . "/admin")'; + echo " (:get . ,(cl-ppcre:create-scanner (concatenate 'string *api-path* \"/invites/codes/([0-9a-f-]+)\"))))"; + echo " \"A list of public resources/actions that do not require authentication.\")"; + echo "(defvar *analytics* '(:enabled t"; + echo ' :db "analytics"))'; } > "$TURTL_BASE_DIR/api/config/config.footer" cp $TURTL_BASE_DIR/asdf.lisp $TURTL_BASE_DIR/api echo '(load (compile-file "asdf.lisp"))' > $TURTL_BASE_DIR/api/launch.lisp