GitLab CI: test Mastodon Nginx conf

merge-requests/1438/head
Alex Gleason 2022-05-20 18:47:49 -05:00
rodzic c729f30efa
commit 0587c3f245
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -59,6 +59,15 @@ jest:
- "package.json"
- "yarn.lock"
nginx-test:
stage: test
image: nginx:latest
before_script: cp installation/mastodon.conf /etc/nginx/conf.d/default.conf
script: nginx -t
only:
changes:
- "installation/mastodon.conf"
build-production:
stage: build
script: yarn build

Wyświetl plik

@ -39,8 +39,9 @@ server {
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
# Uncomment these lines once you acquire a certificate:
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
server_name example.com;
ssl_protocols TLSv1.2 TLSv1.3;