-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from TetAlius/release-0.1.2
Release 0.1.2
- Loading branch information
Showing
36 changed files
with
911 additions
and
355 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.gitignore | ||
.git | ||
scripts | ||
.nginx.conf | ||
.ngrok.yml | ||
.travis.yml | ||
docker-compose.yml | ||
Dockerfile | ||
*.log | ||
LICENSE | ||
README.md |
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,131 @@ | ||
server { | ||
listen 80; | ||
server_name gosyncmycalendars.me; | ||
|
||
location ^~ /.well-known/acme-challenge { | ||
root /usr/share/nginx/html; | ||
default_type text/plain; | ||
allow all; | ||
} | ||
|
||
location / { | ||
rewrite ^ https://$host$request_uri? permanent; | ||
} | ||
} | ||
|
||
|
||
server { | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name gosyncmycalendars.me; | ||
|
||
ssl_protocols TLSv1.2 TLSv1.1 TLSv1; | ||
|
||
ssl_certificate /etc/letsencrypt/live/gosyncmycalendars.me/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/gosyncmycalendars.me/privkey.pem; | ||
ssl_trusted_certificate /etc/letsencrypt/live/gosyncmycalendars.me/chain.pem; | ||
|
||
#server_tokens off; | ||
|
||
#ssl_buffer_size 8k; | ||
|
||
#ssl_certificate /etc/ssl/certs/server.csr; | ||
#ssl_certificate_key /etc/ssl/certs/server.key; | ||
|
||
|
||
|
||
#ssl_dhparam /etc/ssl/certs/dhparam-2048.pem; | ||
|
||
#ssl_prefer_server_ciphers on; | ||
|
||
#ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5; | ||
|
||
#ssl_ecdh_curve secp384r1; | ||
#ssl_session_tickets off; | ||
|
||
# OCSP stapling | ||
#ssl_stapling on; | ||
#ssl_stapling_verify on; | ||
#resolver 8.8.8.8; | ||
|
||
|
||
location ^~ /.well-known/acme-challenge { | ||
root /usr/share/nginx/html; | ||
default_type text/plain; | ||
allow all; | ||
} | ||
|
||
location /{ | ||
proxy_pass http://GoSyncMyCalendars-app:8080/; | ||
#security headers | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; | ||
add_header X-XSS-Protection "1; mode=block" always; | ||
add_header X-Content-Type-Options "nosniff" always; | ||
add_header X-Frame-Options "DENY" always; | ||
#CSP | ||
#add_header Content-Security-Policy "frame-src 'self'; default-src 'self'; script-src 'self' 'unsafe-inline' https://gosyncmycalendars.me:8081 https://maxcdn.bootstrapcdn.com https://ajax.googleapis.com; img-src 'self'; style-src 'self' https://maxcdn.bootstrapcdn.com; font-src 'self' data: https://maxcdn.bootstrapcdn.com; form-action 'self'; upgrade-insecure-requests;" always; | ||
#add_header Referrer-Policy "strict-origin-when-cross-origin" always; | ||
#proxy_set_header Host $host; | ||
#proxy_set_header X-Real-IP $remote_addr; | ||
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
#proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
|
||
} | ||
|
||
|
||
server { | ||
listen 8081 ssl http2; | ||
listen [::]:8081 ssl http2; | ||
server_name gosyncmycalendars.me:8081; | ||
|
||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
ssl_certificate /etc/letsencrypt/live/gosyncmycalendars.me/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/gosyncmycalendars.me/privkey.pem; | ||
ssl_trusted_certificate /etc/letsencrypt/live/gosyncmycalendars.me/chain.pem; | ||
|
||
#server_tokens off; | ||
|
||
#ssl_buffer_size 8k; | ||
|
||
#ssl_certificate /etc/ssl/certs/server.csr; | ||
#ssl_certificate_key /etc/ssl/certs/server.key; | ||
|
||
#ssl_dhparam /etc/ssl/certs/dhparam-2048.pem; | ||
|
||
#ssl_prefer_server_ciphers on; | ||
|
||
#ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5; | ||
|
||
#ssl_ecdh_curve secp384r1; | ||
#ssl_session_tickets off; | ||
|
||
# OCSP stapling | ||
#ssl_stapling on; | ||
#ssl_stapling_verify on; | ||
#resolver 8.8.8.8; | ||
|
||
location ^~ /.well-known/acme-challenge { | ||
root /usr/share/nginx/html; | ||
default_type text/plain; | ||
allow all; | ||
} | ||
|
||
|
||
location /{ | ||
proxy_pass http://GoSyncMyCalendars-app:8081/; | ||
#security headers | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; | ||
add_header X-XSS-Protection "1; mode=block" always; | ||
add_header X-Content-Type-Options "nosniff" always; | ||
add_header X-Frame-Options "DENY" always; | ||
#CSP | ||
#add_header Content-Security-Policy "frame-src 'self'; default-src 'self'; script-src 'self' 'unsafe-inline' https://maxcdn.bootstrapcdn.com https://ajax.googleapis.com; img-src 'self'; style-src 'self' https://maxcdn.bootstrapcdn.com; font-src 'self' data: https://maxcdn.bootstrapcdn.com; form-action 'self'; upgrade-insecure-requests;" always; | ||
#add_header Referrer-Policy "strict-origin-when-cross-origin" always; | ||
#proxy_set_header Host $host; | ||
#proxy_set_header X-Real-IP $remote_addr; | ||
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
#proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.