{"id":1826,"date":"2019-09-17T16:02:07","date_gmt":"2019-09-17T22:02:07","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=1826"},"modified":"2019-09-17T16:02:07","modified_gmt":"2019-09-17T22:02:07","slug":"gitlab-para-poder-poner-gitlab-en-un-frame-x-frame-options","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=1826","title":{"rendered":"GITLAB: Para poder poner gitlab en un frame X-Frame-Options"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Ingresamos al servidor por ssh:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh <a href=\"mailto:ugit@git.siua.ac.cr\">ugit@git.siua.ac.cr<\/a>. -p 44<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Abrimos el archivo<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/var\/opt\/gitlab\/nginx\/conf\/gitlab-http.conf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Buscamos la linea y remplazamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>location \/ {\n    proxy_cache off;\n    proxy_pass  http:\/\/gitlab-workhorse;\n    proxy_hide_header X-Frame-Options;\n}\n\nX\n\nlocation \/ {\n    proxy_cache off;\n    proxy_pass  http:\/\/gitlab-workhorse;\n    proxy_hide_header X-Frame-Options; #Agregamos esta l\u00ednea\n}\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>&nbsp;Reiniciamos el servicio<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">gitlab-ctl restart<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ingresamos al servidor por ssh: ssh ugit@git.siua.ac.cr. -p 44 Abrimos el archivo Buscamos la linea y remplazamos &nbsp;Reiniciamos el servicio gitlab-ctl restart<\/p>\n","protected":false},"author":2,"featured_media":749,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-1826","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gitlab"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1826"}],"version-history":[{"count":1,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1826\/revisions"}],"predecessor-version":[{"id":1827,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1826\/revisions\/1827"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/media\/749"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}