docs: Add Digital Ocean how-to markdown

This commit is contained in:
NaiJi 2022-12-31 10:01:27 +04:00
parent 6950e32558
commit 12de989df6
4 changed files with 25 additions and 3 deletions

View file

@ -0,0 +1,12 @@
### How to get Digital Ocean API Token
1. Visit the following [link](https://cloud.digitalocean.com/) and sign
into newly created account.
2. Enter into previously created project. If you haven't created one,
then please proceed.
3. Go to the "API" link on the left bar.
4. Click on the "Generate New Token".
5. Enter any name for the token.
6. Put expiration time to "No expiry".
7. Check the "Write (optional)" checkbox.
8. Now click on the "Generate Token" button.
9. After that, the token will be shown. Store it in any reliable place, preferably a password manager.

View file

@ -0,0 +1,10 @@
### How to get Digital Ocean API Token
1. Перейдите по [ссылке](https://cloud.digitalocean.com/) и войдите в ваш аккаунт.
2. Перейдите в новый проект, либо создайте проект, если ещё этого не сделали.
3. Перейдите в "API" раздел в меню слева.
4. Нажмите на "Generate New Token".
5. Введите какое-нибудь имя для токена.
6. Установите время истощения на "No expiry".
7. Проставьте галочку в пункте "Write (optional)".
8. Теперь нажмите на "Generate Token" кнопку внизу.
9. После этого появится ваш токен. Скопируйте его в надёжное место, лучше в ваш собственный менеджер паролей.

View file

@ -289,7 +289,7 @@
"select_provider_payment_text_do": "Credit cards, Google Pay, PayPal", "select_provider_payment_text_do": "Credit cards, Google Pay, PayPal",
"select_provider_email_notice": "E-mail hosting won't be available for new clients. Nevertheless it will be unlocked as soon as you complete your first payment.", "select_provider_email_notice": "E-mail hosting won't be available for new clients. Nevertheless it will be unlocked as soon as you complete your first payment.",
"select_provider_site_button": "Visit site", "select_provider_site_button": "Visit site",
"connect_to_server_provider": "Autorize in ", "connect_to_server_provider": "Now log in ",
"connect_to_server_provider_text": "With API token SelfPrivacy will be able to rent a machine and setup your server on it", "connect_to_server_provider_text": "With API token SelfPrivacy will be able to rent a machine and setup your server on it",
"how": "How to obtain API token", "how": "How to obtain API token",
"provider_bad_key_error": "Provider API key is invalid", "provider_bad_key_error": "Provider API key is invalid",

View file

@ -51,7 +51,7 @@ class _ServerProviderPickerState extends State<ServerProviderPicker> {
providerCubit: widget.formCubit, providerCubit: widget.formCubit,
providerInfo: ProviderPageInfo( providerInfo: ProviderPageInfo(
providerType: ServerProvider.hetzner, providerType: ServerProvider.hetzner,
pathToHow: 'hetzner_how', pathToHow: 'how_hetzner',
image: Image.asset( image: Image.asset(
'assets/images/logos/hetzner.png', 'assets/images/logos/hetzner.png',
width: 150, width: 150,
@ -64,7 +64,7 @@ class _ServerProviderPickerState extends State<ServerProviderPicker> {
providerCubit: widget.formCubit, providerCubit: widget.formCubit,
providerInfo: ProviderPageInfo( providerInfo: ProviderPageInfo(
providerType: ServerProvider.digitalOcean, providerType: ServerProvider.digitalOcean,
pathToHow: 'hetzner_how', pathToHow: 'how_digital_ocean',
image: Image.asset( image: Image.asset(
'assets/images/logos/digital_ocean.png', 'assets/images/logos/digital_ocean.png',
width: 150, width: 150,