Commit 06ae7ddf authored by nobodyiam's avatar nobodyiam

misc change

parent 5c160971
...@@ -263,7 +263,11 @@ public class NamespaceService { ...@@ -263,7 +263,11 @@ public class NamespaceService {
itemService.batchDelete(namespace.getId(), operator); itemService.batchDelete(namespace.getId(), operator);
commitService.batchDelete(appId, clusterName, namespace.getNamespaceName(), operator); commitService.batchDelete(appId, clusterName, namespace.getNamespaceName(), operator);
releaseService.batchDelete(appId, clusterName, namespace.getNamespaceName(), operator); // Child namespace releases should retain as long as the parent namespace exists, because parent namespaces' release
// histories need them
if (!isChildNamespace(namespace)) {
releaseService.batchDelete(appId, clusterName, namespace.getNamespaceName(), operator);
}
//delete child namespace //delete child namespace
Namespace childNamespace = findChildNamespace(namespace); Namespace childNamespace = findChildNamespace(namespace);
......
...@@ -16,4 +16,4 @@ server.max-http-header-size=10240 ...@@ -16,4 +16,4 @@ server.max-http-header-size=10240
# Spring Boot 2.0 # Spring Boot 2.0
management.endpoints.web.base-path=/ management.endpoints.web.base-path=/
logging.file.max-size=50MB logging.file.max-size=50MB
logging.file.max-history=30 logging.file.max-history=10
...@@ -13,53 +13,7 @@ ...@@ -13,53 +13,7 @@
<properties> <properties>
<java.version>1.7</java.version> <java.version>1.7</java.version>
<github.path>${project.artifactId}</github.path> <github.path>${project.artifactId}</github.path>
<spring-demo.version>4.3.6.RELEASE</spring-demo.version>
</properties> </properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring-demo.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring-demo.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring-demo.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring-demo.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>${spring-demo.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-asm</artifactId>
<version>${spring-demo.version}</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.2.2</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.ctrip.framework.apollo</groupId> <groupId>com.ctrip.framework.apollo</groupId>
...@@ -86,16 +40,11 @@ ...@@ -86,16 +40,11 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId> <artifactId>spring-boot-starter-log4j2</artifactId>
</dependency> </dependency>
<!-- for refresh scope demo --> <!-- for refresh scope demo -->
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-context</artifactId> <artifactId>spring-cloud-context</artifactId>
</dependency> </dependency>
<!-- required for spring 3.1.0 -->
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.logging.log4j</groupId> <groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId> <artifactId>log4j-core</artifactId>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<properties> <properties>
<java.version>1.7</java.version> <java.version>1.7</java.version>
<github.path>${project.artifactId}</github.path>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<properties> <properties>
<java.version>1.7</java.version> <java.version>1.7</java.version>
<github.path>${project.artifactId}</github.path>
</properties> </properties>
<dependencies> <dependencies>
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
# Build with: # Build with:
# docker build -t apollo-portal . # docker build -t apollo-portal .
# Run with: # Run with:
# docker run -p 8080:8080 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal # docker run -p 8070:8070 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal
# Or if 8080 was taken:
# docker run -p 8070:8080 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal
FROM openjdk:8-jre-alpine FROM openjdk:8-jre-alpine
MAINTAINER ameizi <sxyx2008@163.com> MAINTAINER ameizi <sxyx2008@163.com>
......
...@@ -355,15 +355,14 @@ public class AuthConfiguration { ...@@ -355,15 +355,14 @@ public class AuthConfiguration {
http.csrf().disable(); http.csrf().disable();
http.headers().frameOptions().sameOrigin(); http.headers().frameOptions().sameOrigin();
http.authorizeRequests() http.authorizeRequests()
.antMatchers("/openapi/**", "/vendor/**", "/styles/**", "/scripts/**", "/views/**", .antMatchers("/openapi/**", "/vendor/**", "/styles/**", "/scripts/**", "/views/**", "/img/**").permitAll()
"/img/**").permitAll()
.antMatchers("/**").authenticated(); .antMatchers("/**").authenticated();
http.formLogin().loginPage("/signin").permitAll().failureUrl("/signin?#/error").and() http.formLogin().loginPage("/signin").permitAll().failureUrl("/signin?#/error").and().httpBasic();
.httpBasic(); SimpleUrlLogoutSuccessHandler urlLogoutHandler = new SimpleUrlLogoutSuccessHandler();
urlLogoutHandler.setDefaultTargetUrl("/signin?#/logout");
http.logout().logoutUrl("/user/logout").invalidateHttpSession(true).clearAuthentication(true) http.logout().logoutUrl("/user/logout").invalidateHttpSession(true).clearAuthentication(true)
.logoutSuccessUrl("/signin?#/logout"); .logoutSuccessHandler(urlLogoutHandler);
http.exceptionHandling() http.exceptionHandling().authenticationEntryPoint(new LoginUrlAuthenticationEntryPoint("/signin"));
.authenticationEntryPoint(new LoginUrlAuthenticationEntryPoint("/signin"));
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment