-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "fix: use envsubst directly instead of nginx ssi"
This reverts commit 31b175c.
- Loading branch information
Showing
6 changed files
with
60 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,3 @@ docker-compose.yml | |
.kontinuous | ||
.env | ||
.husky | ||
|
||
start.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
server { | ||
|
||
listen 8080; | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
server_name_in_redirect on; | ||
add_header X-Frame-Options "deny"; | ||
add_header X-XSS-Protection "1; mode=block"; | ||
add_header X-Content-Type-Options "nosniff"; | ||
charset utf-8; | ||
gzip on; | ||
gzip_disable "msie6"; | ||
gzip_vary on; | ||
gzip_proxied any; | ||
gzip_comp_level 6; | ||
gzip_buffers 16 8k; | ||
gzip_http_version 1.1; | ||
gzip_min_length 256; | ||
gzip_types text/css application/json application/javascript application/x-javascript text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon; | ||
client_max_body_size 32m; | ||
error_page 500 502 503 504 /50x.html; | ||
|
||
location / { | ||
ssi on; | ||
ssi_types application/javascript application/x-javascript text/javascript; | ||
set $ENV_NUXT_PUBLIC_APP_VERSION "$NUXT_PUBLIC_APP_VERSION"; | ||
set $ENV_NUXT_PUBLIC_BACKEND_URL "$NUXT_PUBLIC_BACKEND_URL"; | ||
set $ENV_NUXT_PUBLIC_ENVIRONMENT "$NUXT_PUBLIC_ENVIRONMENT"; | ||
set $ENV_NUXT_PUBLIC_MATOMO_ENABLED "$NUXT_PUBLIC_MATOMO_ENABLED"; | ||
set $ENV_NUXT_PUBLIC_MATOMO_HOST "$NUXT_PUBLIC_MATOMO_HOST"; | ||
set $ENV_NUXT_PUBLIC_MATOMO_SITE_ID "$NUXT_PUBLIC_MATOMO_SITE_ID"; | ||
set $ENV_NUXT_PUBLIC_SENTRY_DSN "$NUXT_PUBLIC_SENTRY_DSN"; | ||
set $ENV_NUXT_PUBLIC_SENTRY_ENABLED "$NUXT_PUBLIC_SENTRY_ENABLED"; | ||
|
||
# this always fallback on /index.html, never 404 | ||
try_files $uri $uri.html $uri/index.html $uri/ /index.html; | ||
} | ||
|
||
location /50x.html { | ||
root /var/lib/nginx/html; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
yarn workspace @vao/frontend-usagers install | ||
exec yarn workspace @vao/frontend-usagers dev |
This file was deleted.
Oops, something went wrong.