#18 Add profiles
This commit is contained in:
@@ -7,6 +7,7 @@ import org.springframework.context.annotation.PropertySource;
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "nbs-cloud.files")
|
||||
@PropertySource("classpath:/config/files-application.properties")
|
||||
@PropertySource(value = "classpath:/config/files-application-${spring.profiles.active}.properties", ignoreResourceNotFound = true)
|
||||
public class FilesConfig {
|
||||
private String baseDir;
|
||||
private boolean filterHidden;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
nbs-cloud.files.baseDir=/opt/nextcloud_data/marius/files
|
||||
@@ -5,7 +5,7 @@ info.app.description=A simple web file admin app
|
||||
|
||||
# Knob to configure the base dir where files stores and reads files
|
||||
# Make sure the permissions match
|
||||
nbs-cloud.files.baseDir=/opt/nextcloud_data/marius/files
|
||||
nbs-cloud.files.baseDir=/home/marius/nbstest
|
||||
|
||||
# Knob to configure whether hidden files (e.g. starting with '.' on *NIX)
|
||||
# will be filtered in the file view
|
||||
|
||||
Reference in New Issue
Block a user