mirror of https://github.com/halo-dev/halo
feat: support developer mode.
parent
c1292438ea
commit
4f229d3427
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'org.springframework.boot' version '2.2.0.RELEASE'
|
id 'org.springframework.boot' version '2.2.1.RELEASE'
|
||||||
id "io.freefair.lombok" version "3.6.6"
|
id "io.freefair.lombok" version "3.6.6"
|
||||||
// id 'war'
|
// id 'war'
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
|
@ -30,7 +30,6 @@ import run.halo.app.utils.HttpClientUtils;
|
||||||
import java.security.KeyManagementException;
|
import java.security.KeyManagementException;
|
||||||
import java.security.KeyStoreException;
|
import java.security.KeyStoreException;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.time.temporal.ChronoUnit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Halo configuration.
|
* Halo configuration.
|
||||||
|
@ -165,7 +164,7 @@ public class HaloConfiguration {
|
||||||
|
|
||||||
FilterRegistrationBean<AdminAuthenticationFilter> authenticationFilter = new FilterRegistrationBean<>();
|
FilterRegistrationBean<AdminAuthenticationFilter> authenticationFilter = new FilterRegistrationBean<>();
|
||||||
authenticationFilter.setFilter(adminAuthenticationFilter);
|
authenticationFilter.setFilter(adminAuthenticationFilter);
|
||||||
authenticationFilter.addUrlPatterns("/api/admin/*", "/api/content/comments");
|
authenticationFilter.addUrlPatterns("/api/admin/*", "/actuator/*", "/api/content/comments");
|
||||||
authenticationFilter.setOrder(1);
|
authenticationFilter.setOrder(1);
|
||||||
|
|
||||||
return authenticationFilter;
|
return authenticationFilter;
|
||||||
|
|
|
@ -10,11 +10,25 @@ import static run.halo.app.model.support.HaloConst.DEFAULT_THEME_ID;
|
||||||
*/
|
*/
|
||||||
public enum PrimaryProperties implements PropertyEnum {
|
public enum PrimaryProperties implements PropertyEnum {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* is blog installed.
|
||||||
|
*/
|
||||||
IS_INSTALLED("is_installed", Boolean.class, "false"),
|
IS_INSTALLED("is_installed", Boolean.class, "false"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* current actived theme.
|
||||||
|
*/
|
||||||
THEME("theme", String.class, DEFAULT_THEME_ID),
|
THEME("theme", String.class, DEFAULT_THEME_ID),
|
||||||
|
|
||||||
BIRTHDAY("birthday", Long.class, "");
|
/**
|
||||||
|
* blog birthday
|
||||||
|
*/
|
||||||
|
BIRTHDAY("birthday", Long.class, ""),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* developer mode.
|
||||||
|
*/
|
||||||
|
DEV_MODE("developer_mode", Boolean.class, "false");
|
||||||
|
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,11 @@ spring:
|
||||||
max-request-size: 10240MB
|
max-request-size: 10240MB
|
||||||
cache:
|
cache:
|
||||||
type: none
|
type: none
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: ['httptrace', 'metrics','env']
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
run.halo.app: DEBUG
|
run.halo.app: DEBUG
|
||||||
|
|
|
@ -41,6 +41,11 @@ spring:
|
||||||
max-request-size: 10MB
|
max-request-size: 10MB
|
||||||
cache:
|
cache:
|
||||||
type: none
|
type: none
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: ['httptrace', 'metrics','env']
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
run.halo.app: DEBUG
|
run.halo.app: DEBUG
|
||||||
|
|
|
@ -42,6 +42,11 @@ spring:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 10240MB
|
max-file-size: 10240MB
|
||||||
max-request-size: 10240MB
|
max-request-size: 10240MB
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: ['httptrace', 'metrics','env']
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
run.halo.app: INFO
|
run.halo.app: INFO
|
||||||
|
|
Loading…
Reference in New Issue