mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
fix broken links (#441)
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru> Co-authored-by: Altug Sahin <altugsahin@gmail.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
@ -5,7 +5,7 @@ Basic integration of [Casbin-RS](https://github.com/casbin/casbin-rs) with [RBAC
|
||||
## Usage
|
||||
|
||||
```sh
|
||||
cd examples/casbin
|
||||
cd security/casbin
|
||||
```
|
||||
|
||||
Modify the files in the `rbac` directory and the code in the `src` directory as required.
|
||||
@ -13,13 +13,13 @@ Modify the files in the `rbac` directory and the code in the `src` directory as
|
||||
## Running Server
|
||||
|
||||
```sh
|
||||
cd examples/casbin
|
||||
cd security/casbin
|
||||
cargo run (or ``cargo watch -x run``)
|
||||
|
||||
# Started http server: 127.0.0.1:8080
|
||||
```
|
||||
|
||||
In this example, you can get the the successful result at `http://localhost:8080/success` (accessible) and the failed result at `http://localhost:8080/fail` (inaccessible, `ERR_EMPTY_RESPONSE`).
|
||||
In this example, you can get the successful result at `http://localhost:8080/success` (accessible) and the failed result at `http://localhost:8080/fail` (inaccessible, `ERR_EMPTY_RESPONSE`).
|
||||
|
||||
## Others
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
### Certificate
|
||||
|
||||
We put the self-signed certificate in this direcotry as an example
|
||||
We put the self-signed certificate in this directory as an example
|
||||
but your browser would complain that it isn't secure.
|
||||
So we recommend to use [`mkcert`] to trust it. To use local CA, you should run:
|
||||
|
||||
@ -23,7 +23,7 @@ mkcert 127.0.0.1
|
||||
### server
|
||||
|
||||
```bash
|
||||
cd examples/openssl
|
||||
cd security/openssl
|
||||
cargo run (or ``cargo watch -x run``)
|
||||
# Started http server: 127.0.0.1:8443
|
||||
```
|
||||
|
@ -10,7 +10,7 @@ generated by [`mkcert`] that was used to create the server and client certs.
|
||||
### Server
|
||||
|
||||
```sh
|
||||
cd examples/rustls-client-cert
|
||||
cd security/rustls-client-cert
|
||||
cargo run
|
||||
```
|
||||
|
||||
|
@ -30,7 +30,7 @@ let mut keys = rsa_private_keys(key_file).unwrap(); // rsa
|
||||
|
||||
```bash
|
||||
cd security/rustls
|
||||
cargo run
|
||||
cargo run # (or ``cargo watch -x run``)
|
||||
# Started http server: 127.0.0.1:8443
|
||||
```
|
||||
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
## Run Server
|
||||
```sh
|
||||
cd web-cors/backend
|
||||
cd secutiy/web-cors/backend
|
||||
cargo run
|
||||
```
|
||||
|
||||
## Run Frontend
|
||||
In a separate terminal, also run:
|
||||
```sh
|
||||
cd web-cors/frontend
|
||||
cd secutiy/web-cors/frontend
|
||||
npm install
|
||||
npm run serve
|
||||
```
|
||||
|
Reference in New Issue
Block a user