Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/modules/ROOT/pages/server.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ public class ConfigServer {
}
----

Like all Spring Boot applications, it runs on port 8080 by default, but you can switch it to the more conventional port 8888 in various ways.
The easiest, which also sets a default configuration repository, is by launching it with `spring.config.name=configserver` (there is a `configserver.yml` in the Config Server jar).
Another is to use your own `application.properties`, as shown in the following example:
Like all Spring Boot applications, it runs on port 8080 by default. To use port 8888 and specify your repository, configure them in your own `application.properties`, as shown in the following example:

.application.properties
[source,properties]
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/sagan-index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ public class Application {

The value of `config.name` in the sample (or any other values you bind to in the normal Spring Boot way) can come from local configuration or from the remote Config Server. The Config Server will take precedence by default. To see this look at the `/env` endpoint in the application and see the `configServer` property sources.

To run your own server use the `spring-cloud-config-server` dependency and `@EnableConfigServer`. If you set `spring.config.name=configserver` the app will run on port 8888 and serve data from a sample repository. You need a `spring.cloud.config.server.git.uri` to locate the configuration data for your own needs (by default it is the location of a git repository, and can be a local `file:..` URL).
To run your own server use the `spring-cloud-config-server` dependency and `@EnableConfigServer`. Set `server.port=8888` in your application configuration to use port 8888, and set `spring.cloud.config.server.git.uri` to locate your Git repository (which can be a local `file:..` URL).

Loading