GitLab CI: test Mastodon Nginx conf

environments/review-nginx-t-eiiks5/deployments/34
Alex Gleason 2 years ago
parent c729f30efa
commit 0587c3f245
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -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

@ -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;

Loading…
Cancel
Save