summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/installation
diff options
context:
space:
mode:
authorAsk Bjørn Hansen <ask@develooper.com>2020-02-25 10:25:17 -0800
committerGitHub <noreply@github.com>2020-02-25 13:25:17 -0500
commitb098cc24c5d93ca96ff72faf3093f45c30c974f0 (patch)
tree7a5080b2a48f877c660c322adad8400bdc28d700 /docs/content/doc/installation
parentfa3381610cc05479e8a3d4f035d69caf67199555 (diff)
downloadgitea-b098cc24c5d93ca96ff72faf3093f45c30c974f0.tar.gz
gitea-b098cc24c5d93ca96ff72faf3093f45c30c974f0.zip
Use documentation IPs for example IPs (#10434)
See https://tools.ietf.org/html/rfc5737 Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'docs/content/doc/installation')
-rw-r--r--docs/content/doc/installation/database-preparation.en-us.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/content/doc/installation/database-preparation.en-us.md b/docs/content/doc/installation/database-preparation.en-us.md
index 59e7698b06..7bf5ff2bc3 100644
--- a/docs/content/doc/installation/database-preparation.en-us.md
+++ b/docs/content/doc/installation/database-preparation.en-us.md
@@ -42,10 +42,10 @@ Note: All steps below requires that the database engine of your choice is instal
```sql
SET old_passwords=0;
- CREATE USER 'gitea'@'12.34.56.78' IDENTIFIED BY 'gitea';
+ CREATE USER 'gitea'@'192.0.2.10' IDENTIFIED BY 'gitea';
```
- where `12.34.56.78` is the IP address of your Gitea instance.
+ where `192.0.2.10` is the IP address of your Gitea instance.
Replace username and password above as appropriate.
@@ -69,7 +69,7 @@ Note: All steps below requires that the database engine of your choice is instal
For remote database:
```sql
- GRANT ALL PRIVILEGES ON giteadb.* TO 'gitea'@'12.34.56.78';
+ GRANT ALL PRIVILEGES ON giteadb.* TO 'gitea'@'192.0.2.10';
FLUSH PRIVILEGES;
```
@@ -78,10 +78,10 @@ Note: All steps below requires that the database engine of your choice is instal
6. On your Gitea server, test connection to the database:
```
- mysql -u gitea -h 23.45.67.89 -p giteadb
+ mysql -u gitea -h 203.0.113.3 -p giteadb
```
- where `gitea` is database username, `giteadb` is database name, and `23.45.67.89` is IP address of database instance. Omit `-h` option for local database.
+ where `gitea` is database username, `giteadb` is database name, and `203.0.113.3` is IP address of database instance. Omit `-h` option for local database.
You should be connected to the database.
@@ -128,7 +128,7 @@ Note: All steps below requires that the database engine of your choice is instal
For remote database:
```ini
- host giteadb gitea 12.34.56.78/32 scram-sha-256
+ host giteadb gitea 192.0.2.10/32 scram-sha-256
```
Replace database name, user, and IP address of Gitea instance with your own.
@@ -148,9 +148,9 @@ Note: All steps below requires that the database engine of your choice is instal
For remote database:
```
- psql "postgres://gitea@23.45.67.89/giteadb"
+ psql "postgres://gitea@203.0.113.3/giteadb"
```
- where `gitea` is database user, `giteadb` is database name, and `23.45.67.89` is IP address of your database instance.
+ where `gitea` is database user, `giteadb` is database name, and `203.0.113.3` is IP address of your database instance.
You should be prompted to enter password for the database user, and connected to the database.