GitLab CI: test Mastodon Nginx conf
This commit is contained in:
parent
c729f30efa
commit
0587c3f245
|
@ -59,6 +59,15 @@ jest:
|
||||||
- "package.json"
|
- "package.json"
|
||||||
- "yarn.lock"
|
- "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:
|
build-production:
|
||||||
stage: build
|
stage: build
|
||||||
script: yarn build
|
script: yarn build
|
||||||
|
|
|
@ -39,8 +39,9 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
# Uncomment these lines once you acquire a certificate:
|
||||||
listen [::]:443 ssl http2;
|
# listen 443 ssl http2;
|
||||||
|
# listen [::]:443 ssl http2;
|
||||||
server_name example.com;
|
server_name example.com;
|
||||||
|
|
||||||
ssl_protocols TLSv1.2 TLSv1.3;
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
|
Loading…
Reference in New Issue