Skip to content

Serve static data from a separate domain #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
php-coder opened this issue Oct 1, 2014 · 5 comments
Closed

Serve static data from a separate domain #73

php-coder opened this issue Oct 1, 2014 · 5 comments
Assignees
Labels
area/optimization This change could speed up our site area/security environment/prod Issue affects only production environment
Milestone

Comments

@php-coder
Copy link
Owner

To increase security we should serve static data (*.css, *.js, *.jpg, *.png) from separate domain.

@php-coder php-coder self-assigned this Oct 1, 2014
@php-coder php-coder added this to the 0.4 milestone Oct 1, 2014
@php-coder php-coder mentioned this issue Oct 1, 2014
13 tasks
@php-coder php-coder added the ready label Oct 1, 2014
@php-coder php-coder modified the milestones: 0.5, 0.4 Jun 1, 2015
@php-coder php-coder modified the milestones: 0.4, 0.5 Jun 24, 2015
@php-coder
Copy link
Owner Author

During fixing #72 I realized that if we want to serve static data from separate domain we must have a SSL certificate for that domain too. So, I reverted my previous changes back for a while.

@php-coder php-coder reopened this Aug 15, 2015
@php-coder php-coder removed this from the 0.4 milestone Aug 15, 2015
php-coder added a commit that referenced this issue Aug 17, 2015
Required for properly fix #72 but this changes reopens #73
@php-coder php-coder removed their assignment Aug 21, 2015
@php-coder php-coder added area/security area/optimization This change could speed up our site and removed kind/improvement labels Sep 2, 2015
@php-coder php-coder added this to the 0.4 milestone Oct 25, 2016
@php-coder php-coder self-assigned this Oct 25, 2016
@php-coder php-coder added the environment/prod Issue affects only production environment label Oct 25, 2016
@php-coder
Copy link
Owner Author

SSL certificate from letsencypt has been uploaded to the server.

@php-coder php-coder changed the title Serve static data from separate domain Serve static data from a separate domain Dec 7, 2016
@php-coder
Copy link
Owner Author

After rolling out fix I discover that this works only for requests to /image. For CSS/JS/favicon.ico Jetty failing requests with:

2016-12-09 01:00:26.870  WARN 1326 --- [qtp966739377-56] o.e.jetty.util.thread.QueuedThreadPool   : Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$3@6e10e9d in qtp966739377{STAR

@php-coder
Copy link
Owner Author

php-coder commented Dec 8, 2016

Dunno what was it but now it works..

@php-coder
Copy link
Owner Author

php-coder commented Dec 8, 2016

All works except this redirect: https://stamps.filezz.ru/account/auth => https://my-stamps.ru

bodom91 pushed a commit to bodom91/mystamps that referenced this issue Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/optimization This change could speed up our site area/security environment/prod Issue affects only production environment
Projects
None yet
Development

No branches or pull requests

1 participant