New translations install.mdx (Swedish)

[ci skip]
This commit is contained in:
crowdin 2024-07-04 13:49:35 +00:00
parent c9d342f6d3
commit ee9decd5fc

@ -4,24 +4,14 @@ title: Hur man installerar Castopod?
import { Aside } from "@astrojs/starlight/components"; import { Aside } from "@astrojs/starlight/components";
Castopod var tänkt att vara lätt att installera. Oavsett om du använder Castopod was thought-out to be easy to install. Whether using dedicated or
dedikerade eller delade webbhotell kan du installera det på de flesta shared hosting, you can install it on most PHP-MySQL compatible web servers.
PHP-MySQL-kompatibla webbservrar.
<Aside> ## Requirements
Vi har släppt officiella Docker-bilder för Castopod!
Om du föredrar att använda Docker, kan du hoppa över detta och gå direkt till
[dockerdokumentationen](./docker.md) för Castopod.
</Aside>
## Krav
- PHP v8.3 or higher - PHP v8.3 or higher
- MySQL version 5.7 eller högre eller MariaDB version 10.2 eller högre - MySQL version 5.7 or higher or MariaDB version 10.2 or higher
- Stöd för HTTPS - HTTPS support
- An [ntp-synced clock](https://wiki.debian.org/NTP) to validate federation's - An [ntp-synced clock](https://wiki.debian.org/NTP) to validate federation's
incoming requests incoming requests
@ -32,65 +22,57 @@ PHP version 8.3 or higher is required, with the following extensions installed:
- [intl](https://php.net/manual/en/intl.requirements.php) - [intl](https://php.net/manual/en/intl.requirements.php)
- [libcurl](https://php.net/manual/en/curl.requirements.php) - [libcurl](https://php.net/manual/en/curl.requirements.php)
- [mbstring](https://php.net/manual/en/mbstring.installation.php) - [mbstring](https://php.net/manual/en/mbstring.installation.php)
- [gd](https://www.php.net/manual/en/image.installation.php) med **JPEG**, - [gd](https://www.php.net/manual/en/image.installation.php) with **JPEG**,
**PNG** och **WEBP** bibliotek. **PNG** and **WEBP** libraries.
- [exif](https://www.php.net/manual/en/exif.installation.php) - [exif](https://www.php.net/manual/en/exif.installation.php)
Se dessutom till att följande tillägg är aktiverade i din PHP: Additionally, make sure that the following extensions are enabled in your PHP:
- json (aktiverad som standard - stäng inte av) - json (enabled by default - don't turn it off)
- xml (aktiverat som standard - stäng inte av) - xml (enabled by default - don't turn it off)
- [mysqlnd](https://php.net/manual/en/mysqlnd.install.php) - [mysqlnd](https://php.net/manual/en/mysqlnd.install.php)
### MySQL kompatibel databas ### MySQL compatible database
> Vi rekommenderar att du använder [MariaDB](https://mariadb.org). > We recommend using [MariaDB](https://mariadb.org).
<Aside> You will need the server hostname, database name, username and password to
complete the installation process. If you do not have these, please contact your
server administrator.
Castopod fungerar endast med stödda MySQL 5.7 eller högre kompatibla databaser. #### Privileges
Den kommer att bryta med den tidigare MySQL v5.6 till exempel eftersom dess slut
var den 5 februari 2021.
</Aside> User must have at least these privileges on the database for Castopod to work:
`CREATE`, `ALTER`, `DELETE`, `EXECUTE`, `INDEX`, `INSERT`, `SELECT`, `UPDATE`,
`REFERENCES`, `CREATE VIEW`.
Du behöver serverns värdnamn, databasnamn, användarnamn och lösenord för att ### (Optional) FFmpeg v4.1.8 or higher for Video Clips
slutföra installationen. Om du inte har dessa kontaktar du din
serveradministratör.
#### Privilegier [FFmpeg](https://www.ffmpeg.org/) version 4.1.8 or higher is required if you
want to generate Video Clips. The following extensions must be installed:
Användare måste ha minst dessa rättigheter i databasen för att Castopod ska - **FreeType 2** library for
fungera: `CREATE`, `ALTER`, `DELETE`, `EXECUTE`, `INDEX`, `INSERT`, `SELECT`,
`UPDATE`, `REFERENCES`, `CREATE VIEW`.
### (Valfritt) FFmpeg v4.1.8 eller högre för videoklipp
[FFmpeg](https://www.ffmpeg.org/) version 4.1.8 eller högre krävs om du vill
generera videoklipp. Följande tillägg måste installeras:
- **FreeType 2** bibliotek för
[gd](https://www.php.net/manual/en/image.installation.php). [gd](https://www.php.net/manual/en/image.installation.php).
### (Valfritt) Andra rekommendationer ### (Optional) Other recommendations
- Redis för bättre cache-prestanda. - Redis for better cache performances.
- CDN för statiska filer caching och bättre prestanda. - CDN for static files caching and better performances.
- e-post gateway för förlorade lösenord. - e-mail gateway for lost passwords.
## Installationsanvisningar ## Privilegier
### Förutsättningar ### Pre-requisites
0. Skaffa en webbserver med [krav](#requirements) installerat 0. Get a Web Server with [requirements](#requirements) installed
1. Skapa en MySQL-databas för Castopod med en användare som har åtkomst till och 1. Create a MySQL database for Castopod with a user having access and
modifieringsrättigheter (för mer info, se modification privileges (for more info, see
[MySQL-kompatibel databas](#mysql-compatible-database)). [MySQL compatible database](#mysql-compatible-database)).
2. Aktivera HTTPS på din domän med ett _SSL-certifikat_. 2. Activate HTTPS on your domain with an _SSL certificate_.
3. Ladda ner och packa upp det senaste [Castopod Package](https://castopod.org/) 3. Download and unzip the latest [Castopod Package](https://castopod.org/) onto
på webbservern om du inte redan har det. the web server if you havent already.
- ⚠️ Sätt webbserverdokumentroten till `public/` undermappen i mappen - ⚠️ Set the web server document root to the `public/` sub-folder within the
`castopod`. `castopod` folder.
4. Add **cron tasks** on your web server for various background processes 4. Add **cron tasks** on your web server for various background processes
(replace the paths accordingly): (replace the paths accordingly):
@ -108,24 +90,25 @@ generera videoklipp. Följande tillägg måste installeras:
- Generating video clips - - Generating video clips -
[requires FFmpeg](#optional-ffmpeg-v418-or-higher-for-video-clips) [requires FFmpeg](#optional-ffmpeg-v418-or-higher-for-video-clips)
### (rekommenderas) Installationsguide ### (recommended) Install Wizard
1. Kör Castopod install script genom att gå till installationsguiden sidan 1. **FreeType 2** bibliotek för
(`https://your_domain_name.com/cp-install`) i din favorit webbläsare. [gd](https://www.php.net/manual/en/image.installation.php).
2. Följ instruktionerna på din enhet. 2. Follow the instructions on your screen.
3. Börja podcasting! 3. Start podcasting!
<Aside> <Aside>
Installationsskriptet skriver en `.env` -fil i paketroten. Om du inte kan gå via The install script writes a `.env` file in the package root. If you cannot go
installationsguiden kan du skapa och redigera `. nv` filen manuellt baserat på through the install wizard, you can create and edit the `.env` file manually
`.env.example` filen. based on the `.env.example` file.
</Aside> </Aside>
### Using CLI ### Using CLI
1. Create a `.env` file in the package root based on the `.env.example` file. 1. Create a `.env` file in the package root based on the `.env.example` file.
2. Initialize the database using: 2. Initialize the database using:
```sh ```sh
@ -142,11 +125,11 @@ installationsguiden kan du skapa och redigera `. nv` filen manuellt baserat på
### Email/SMTP setup ### Email/SMTP setup
E-postkonfiguration krävs för att vissa funktioner ska fungera korrekt (t.ex. Email configuration is required for some features to work properly (eg.
att hämta ditt glömda lösenord, skicka instruktioner till premiumprenumeranter, retrieving your forgotten password, sending instructions to premium subscribers,
…) …)
Du kan lägga till din e-postkonfiguration i din instans `.env` som så: You may add your email configuration in your instance's `.env` like so:
```ini ```ini
# […] # […]
@ -157,17 +140,17 @@ email.SMTPUser="your_smtp_user"
email.SMTPPass="your_smtp_password" email.SMTPPass="your_smtp_password"
``` ```
#### Alternativ för e-postkonfiguration #### Email config options
| Variabelt namn | Typ | Standard | | Variable name | Type | Default |
| ---------------- | ----------------------- | ------------- | | ---------------- | -------------------- | ------------ |
| **`fromEmail`** | sträng | `odefinierad` | | **`fromEmail`** | string | `undefined` |
| **`fromName`** | sträng | `"Castopod"` | | **`fromName`** | string | `"Castopod"` |
| **`SMTPHost`** | sträng | `odefinierad` | | **`SMTPHost`** | string | `undefined` |
| **`SMTPUser`** | sträng | `odefinierad` | | **`SMTPUser`** | string | `undefined` |
| **`SMTPPass`** | sträng | `odefinierad` | | **`SMTPPass`** | string | `undefined` |
| **`SMTPPort`** | nummer | `25` | | **`SMTPPort`** | number | `25` |
| **`SMTPCrypto`** | [`"tls"` eller `"ssl"`] | `"tls"` | | **`SMTPCrypto`** | [`"tls"` or `"ssl"`] | `"tls"` |
### Media storage ### Media storage
@ -213,7 +196,7 @@ media.s3.region="your_s3_region"
| **`pathStyleEndpoint`** | boolean | `false` | | **`pathStyleEndpoint`** | boolean | `false` |
| **`keyPrefix`** | string | `undefined` | | **`keyPrefix`** | string | `undefined` |
## Gemenskapspaket ## Community packages
If you don't want to bother with installing Castopod manually, you may use one If you don't want to bother with installing Castopod manually, you may use one
of the packages created and maintained by the open-source community. of the packages created and maintained by the open-source community.
@ -233,7 +216,7 @@ self-hosting for you.
> >
<img <img
src="https://install-app.yunohost.org/install-with-yunohost.svg" src="https://install-app.yunohost.org/install-with-yunohost.svg"
alt="Installera Castopod med YunoHost" alt="Install Castopod with YunoHost"
class="align-middle" class="align-middle"
/> />
</a> </a>