Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zasedání CF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Zasedání CF
Commits
0c8e0b59
Verified
Commit
0c8e0b59
authored
7 months ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Local dev setup
parent
7ae9a1f8
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-3
1 addition, 3 deletions
Dockerfile
compose.yaml
+6
-0
6 additions, 0 deletions
compose.yaml
docker/nginx.conf
+15
-15
15 additions, 15 deletions
docker/nginx.conf
with
22 additions
and
18 deletions
Dockerfile
+
1
−
3
View file @
0c8e0b59
FROM
node:16.9-alpine
as
build
FROM
node:16.9-alpine
as
build
ARG
BUILD_REACT_APP_STYLEGUIDE_URL
ENV
REACT_APP_STYLEGUIDE_URL="https://styleguide.pirati.cz/2.7.1"
ENV
REACT_APP_STYLEGUIDE_URL=${BUILD_REACT_APP_STYLEGUIDE_URL}
RUN
mkdir
-p
/home/node/cf
RUN
mkdir
-p
/home/node/cf
...
...
This diff is collapsed.
Click to expand it.
compose.yaml
0 → 100644
+
6
−
0
View file @
0c8e0b59
services
:
app
:
image
:
cf
ports
:
-
"
3000:80"
This diff is collapsed.
Click to expand it.
docker/nginx.conf
+
15
−
15
View file @
0c8e0b59
gzip
on
;
#
gzip on;
gzip_disable
"MSIE
[1-6]
\\
.(?!.*SV1)"
;
#
gzip_disable "MSIE [1-6]\\.(?!.*SV1)";
gzip_proxied
any
;
#
gzip_proxied any;
gzip_comp_level
5
;
#
gzip_comp_level 5;
gzip_types
text/plain
text/css
application/javascript
application/x-javascript
text/xml
application/xml
application/rss
+xml
text/javascript
image/x-icon
image/bmp
image/svg
+xml
;
#
gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary
on
;
#
gzip_vary on;
server
{
server
{
listen
80
;
listen
80
;
...
@@ -14,15 +14,15 @@ server {
...
@@ -14,15 +14,15 @@ server {
try_files
$uri
$uri
/
/index.html
;
try_files
$uri
$uri
/
/index.html
;
# X-Frame-Options is to prevent from clickJacking attack
# X-Frame-Options is to prevent from clickJacking attack
add_header
X-Frame-Options
SAMEORIGIN
;
#
add_header X-Frame-Options SAMEORIGIN;
# disable content-type sniffing on some browsers.
# disable content-type sniffing on some browsers.
add_header
X-Content-Type-Options
nosniff
;
#
add_header X-Content-Type-Options nosniff;
# This header enables the Cross-site scripting (XSS) filter
# This header enables the Cross-site scripting (XSS) filter
add_header
X-XSS-Protection
"1
;
mode=block"
;
#
add_header X-XSS-Protection "1; mode=block";
# This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack
# This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack
add_header
Strict-Transport-Security
"max-age=31536000
;
includeSubdomains
;
"
;
#
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
add_header
Referrer-Policy
"no-referrer-when-downgrade"
;
#
add_header Referrer-Policy "no-referrer-when-downgrade";
add_header
Cache-Control
"no-store,
no-cache,
must-revalidate"
;
#
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
}
location
/static
{
location
/static
{
...
@@ -30,9 +30,9 @@ server {
...
@@ -30,9 +30,9 @@ server {
access_log
off
;
access_log
off
;
# This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack
# This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack
add_header
Strict-Transport-Security
"max-age=31536000
;
includeSubdomains
;
"
;
#
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
add_header
Referrer-Policy
"no-referrer-when-downgrade"
;
#
add_header Referrer-Policy "no-referrer-when-downgrade";
add_header
Cache-Control
"public"
;
#
add_header Cache-Control "public";
}
}
error_page
500
502
503
504
/50x.html
;
error_page
500
502
503
504
/50x.html
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment